mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-01 18:19:08 -04:00
clean udp writer
This commit is contained in:
@@ -128,6 +128,12 @@ func NewMergingWriterSize(writer io.Writer, size uint32) Writer {
|
||||
}
|
||||
}
|
||||
|
||||
func NewSequentialWriter(writer io.Writer) Writer {
|
||||
return &seqWriter{
|
||||
writer: writer,
|
||||
}
|
||||
}
|
||||
|
||||
// ToBytesWriter converts a Writer to io.Writer
|
||||
func ToBytesWriter(writer Writer) io.Writer {
|
||||
return &bytesToBufferWriter{
|
||||
|
||||
Reference in New Issue
Block a user