1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-29 05:25:21 -05:00

cleanup buf interfaces

This commit is contained in:
Darien Raymond
2018-07-31 13:43:27 +02:00
parent b3cf1f70d7
commit 7baa6977d3
9 changed files with 28 additions and 32 deletions

View File

@@ -20,7 +20,7 @@ func TestUDPEncoding(t *testing.T) {
Address: net.IPAddress([]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6}),
Port: 1024,
}
writer := buf.NewSequentialWriter(NewUDPWriter(request, b))
writer := &buf.SequentialWriter{Writer: NewUDPWriter(request, b)}
content := []byte{'a'}
payload := buf.New()