1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-03 15:55:20 -05:00
This commit is contained in:
Darien Raymond
2018-04-02 20:01:05 +02:00
19 changed files with 25 additions and 25 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