1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 23:35:40 -05:00
This commit is contained in:
wuxiangzhou2010
2018-04-02 15:52:16 +08:00
parent a58063e7ac
commit 5a08411ee2
12 changed files with 16 additions and 16 deletions

4
common/crypto/chunk.go Normal file → Executable file
View File

@@ -8,13 +8,13 @@ import (
"v2ray.com/core/common/serial"
)
// ChunkSizeDecoder is an utility class to decode size value from bytes.
// ChunkSizeDecoder is a utility class to decode size value from bytes.
type ChunkSizeDecoder interface {
SizeBytes() int
Decode([]byte) (uint16, error)
}
// ChunkSizeEncoder is an utility class to encode size value into bytes.
// ChunkSizeEncoder is a utility class to encode size value into bytes.
type ChunkSizeEncoder interface {
SizeBytes() int
Encode(uint16, []byte) []byte