MCPcopy
hub / github.com/gogf/gf / BeEncodeInt

Function BeEncodeInt

encoding/gbinary/gbinary_be.go:114–124  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

112}
113
114func BeEncodeInt(i int) []byte {
115 if i <= math.MaxInt8 {
116 return BeEncodeInt8(int8(i))
117 } else if i <= math.MaxInt16 {
118 return BeEncodeInt16(int16(i))
119 } else if i <= math.MaxInt32 {
120 return BeEncodeInt32(int32(i))
121 } else {
122 return BeEncodeInt64(int64(i))
123 }
124}
125
126func BeEncodeUint(i uint) []byte {
127 if i <= math.MaxUint8 {

Callers 1

BeEncodeFunction · 0.85

Calls 4

BeEncodeInt8Function · 0.85
BeEncodeInt16Function · 0.85
BeEncodeInt32Function · 0.85
BeEncodeInt64Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…