mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-25 21:49:09 -04:00
comments
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user