1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-25 21:49:09 -04:00
This commit is contained in:
Darien Raymond
2017-02-13 22:39:55 +01:00
parent 5040817a7b
commit 76d2e5517b
8 changed files with 9 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ package serial
import "strconv"
// Uint16ToBytes serializes an uint16 into bytes in big endian order.
func Uint16ToBytes(value uint16, b []byte) []byte {
return append(b, byte(value>>8), byte(value))
}