mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-19 03:59:11 -04:00
remove NewMultiBufferValue
This commit is contained in:
@@ -44,7 +44,7 @@ func TestReaderWriter(t *testing.T) {
|
||||
writePayload := func(writer *Writer, payload ...byte) error {
|
||||
b := buf.New()
|
||||
b.Write(payload)
|
||||
return writer.WriteMultiBuffer(buf.NewMultiBufferValue(b))
|
||||
return writer.WriteMultiBuffer(buf.MultiBuffer{b})
|
||||
}
|
||||
|
||||
assert(writePayload(writer, 'a', 'b', 'c', 'd'), IsNil)
|
||||
|
||||
Reference in New Issue
Block a user