1
0
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:
Darien Raymond
2018-11-14 22:55:20 +01:00
parent ff7e5a7cdb
commit 6c7dcc35ab
12 changed files with 89 additions and 32 deletions

View File

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