mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-06-17 00:09:56 -04:00
rename alloc to buf
This commit is contained in:
@@ -3,7 +3,7 @@ package utp_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"v2ray.com/core/common/alloc"
|
||||
"v2ray.com/core/common/buf"
|
||||
"v2ray.com/core/testing/assert"
|
||||
. "v2ray.com/core/transport/internet/headers/utp"
|
||||
)
|
||||
@@ -14,7 +14,7 @@ func TestUTPWrite(t *testing.T) {
|
||||
content := []byte{'a', 'b', 'c', 'd', 'e', 'f', 'g'}
|
||||
utp := UTP{}
|
||||
|
||||
payload := alloc.NewLocalBuffer(2048)
|
||||
payload := buf.NewLocalBuffer(2048)
|
||||
payload.AppendFunc(utp.Write)
|
||||
payload.Append(content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user