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

Function ParseBinaryUint24

IceFireDB-SQLite/pkg/mysql/mysql/parse_binary.go:32–34  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

30}
31
32func ParseBinaryUint24(data []byte) uint32 {
33 return uint32(data[0]) | uint32(data[1])<<8 | uint32(data[2])<<16
34}
35
36func ParseBinaryInt32(data []byte) int32 {
37 return int32(binary.LittleEndian.Uint32(data))

Callers 2

ParseBinaryInt24Function · 0.70

Calls

no outgoing calls

Tested by 1