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

Function AppendInt

protocol/net/io/encoding/encoding.go:26–28  ·  view source on GitHub ↗
(data []byte, i int32)

Source from the content-addressed store, hash-verified

24}
25
26func AppendInt(data []byte, i int32) []byte {
27 return append(data, byte(i>>24), byte(i>>16), byte(i>>8), byte(i))
28}
29
30func AppendLong(data []byte, l int64) []byte {
31 return append(data, byte(l>>56), byte(l>>48), byte(l>>40), byte(l>>32), byte(l>>24), byte(l>>16), byte(l>>8), byte(l))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected