MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / AppendShort

Function AppendShort

protocol/net/io/encoding/encoding.go:18–20  ·  view source on GitHub ↗
(data []byte, s int16)

Source from the content-addressed store, hash-verified

16}
17
18func AppendShort(data []byte, s int16) []byte {
19 return append(data, byte(s>>8), byte(s))
20}
21
22func AppendUshort(data []byte, s uint16) []byte {
23 return append(data, byte(s>>8), byte(s))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected