mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-29 13:35:20 -05:00
remove buffer.WriteBytes
This commit is contained in:
@@ -20,11 +20,11 @@ func TestChunkStreamIO(t *testing.T) {
|
||||
reader := NewChunkStreamReader(PlainChunkSizeParser{}, cache)
|
||||
|
||||
b := buf.New()
|
||||
b.WriteBytes('a', 'b', 'c', 'd')
|
||||
b.WriteString("abcd")
|
||||
common.Must(writer.WriteMultiBuffer(buf.NewMultiBufferValue(b)))
|
||||
|
||||
b = buf.New()
|
||||
b.WriteBytes('e', 'f', 'g')
|
||||
b.WriteString("efg")
|
||||
common.Must(writer.WriteMultiBuffer(buf.NewMultiBufferValue(b)))
|
||||
|
||||
common.Must(writer.WriteMultiBuffer(buf.MultiBuffer{}))
|
||||
|
||||
Reference in New Issue
Block a user