1
0
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:
Darien Raymond
2017-04-21 14:51:09 +02:00
parent eda72624e2
commit 498c7dafdf
10 changed files with 48 additions and 55 deletions

View File

@@ -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{