MCPcopy Create free account
hub / github.com/segmentio/encoding / bto32

Function bto32

proto/bytes.go:117–119  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

115}
116
117func bto32(b []byte) uint32 {
118 return *(*uint32)(unsafe.Pointer(&b[0]))
119}
120
121func bto16(b []byte) uint16 {
122 return *(*uint16)(unsafe.Pointer(&b[0]))

Callers 1

isZeroBytesFunction · 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…