mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-18 03:29:12 -04:00
rename alloc to buf
This commit is contained in:
@@ -3,7 +3,7 @@ package kcp_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"v2ray.com/core/common/alloc"
|
||||
"v2ray.com/core/common/buf"
|
||||
"v2ray.com/core/testing/assert"
|
||||
. "v2ray.com/core/transport/internet/kcp"
|
||||
)
|
||||
@@ -19,7 +19,7 @@ func TestBadSegment(t *testing.T) {
|
||||
func TestDataSegment(t *testing.T) {
|
||||
assert := assert.On(t)
|
||||
|
||||
b := alloc.NewLocalBuffer(512)
|
||||
b := buf.NewLocalBuffer(512)
|
||||
b.Append([]byte{'a', 'b', 'c', 'd'})
|
||||
seg := &DataSegment{
|
||||
Conv: 1,
|
||||
|
||||
Reference in New Issue
Block a user