MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / FixedLengthInt

Function FixedLengthInt

IceFireDB-SQLProxy/pkg/mysql/mysql/util.go:126–132  ·  view source on GitHub ↗

FixedLengthInt: little endian

(buf []byte)

Source from the content-addressed store, hash-verified

124
125// FixedLengthInt: little endian
126func FixedLengthInt(buf []byte) uint64 {
127 var num uint64 = 0
128 for i, b := range buf {
129 num |= uint64(b) << (uint(i) * 8)
130 }
131 return num
132}
133
134// BFixedLengthInt: big endian
135func BFixedLengthInt(buf []byte) uint64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected