mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
simple write for single buffer
This commit is contained in:
parent
fdb3a7b57d
commit
950612544b
@ -21,6 +21,10 @@ func (w *BufferToBytesWriter) WriteMultiBuffer(mb MultiBuffer) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(mb) == 1 {
|
||||||
|
return WriteAllBytes(w.Writer, mb[0].Bytes())
|
||||||
|
}
|
||||||
|
|
||||||
bs := mb.ToNetBuffers()
|
bs := mb.ToNetBuffers()
|
||||||
|
|
||||||
for size > 0 {
|
for size > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user