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

rename alloc to buf

This commit is contained in:
Darien Raymond
2016-12-09 11:35:27 +01:00
parent cd24d6f2d0
commit 7a80409e30
60 changed files with 199 additions and 196 deletions

View File

@@ -3,7 +3,7 @@ package encoding
import (
"io"
"v2ray.com/core/common/alloc"
"v2ray.com/core/common/buf"
"v2ray.com/core/common/errors"
v2net "v2ray.com/core/common/net"
"v2ray.com/core/common/protocol"
@@ -32,7 +32,7 @@ func MarshalCommand(command interface{}, writer io.Writer) error {
return ErrUnknownCommand
}
buffer := alloc.NewLocalBuffer(512)
buffer := buf.NewLocalBuffer(512)
defer buffer.Release()
err := factory.Marshal(command, buffer)