mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-27 04:25:44 -05:00
rename NewLocal to NewSize
This commit is contained in:
@@ -27,10 +27,10 @@ func TestAuthenticationReaderWriter(t *testing.T) {
|
||||
rawPayload := make([]byte, 8192*10)
|
||||
rand.Read(rawPayload)
|
||||
|
||||
payload := buf.NewLocal(8192 * 10)
|
||||
payload := buf.NewSize(8192 * 10)
|
||||
payload.Append(rawPayload)
|
||||
|
||||
cache := buf.NewLocal(160 * 1024)
|
||||
cache := buf.NewSize(160 * 1024)
|
||||
iv := make([]byte, 12)
|
||||
rand.Read(iv)
|
||||
|
||||
@@ -83,7 +83,7 @@ func TestAuthenticationReaderWriterPacket(t *testing.T) {
|
||||
aead, err := cipher.NewGCM(block)
|
||||
assert(err, IsNil)
|
||||
|
||||
cache := buf.NewLocal(1024)
|
||||
cache := buf.NewSize(1024)
|
||||
iv := make([]byte, 12)
|
||||
rand.Read(iv)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user