1
0
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:
Darien Raymond
2018-03-11 23:29:17 +01:00
parent f97e6fa3d2
commit 994aecd13c
13 changed files with 18 additions and 18 deletions

View File

@@ -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)