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

Function LeEncodeInt32

encoding/gbinary/gbinary_le.go:158–162  ·  view source on GitHub ↗
(i int32)

Source from the content-addressed store, hash-verified

156}
157
158func LeEncodeInt32(i int32) []byte {
159 b := make([]byte, 4)
160 binary.LittleEndian.PutUint32(b, uint32(i))
161 return b
162}
163
164func LeEncodeUint32(i uint32) []byte {
165 b := make([]byte, 4)

Callers 2

LeEncodeFunction · 0.85
EncodeInt32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…