MCPcopy
hub / github.com/tinylib/msgp / getMuint64

Function getMuint64

msgp/integers.go:93–100  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

91}
92
93func getMuint64(b []byte) uint64 {
94 _ = b[8] // bounds check elimination
95
96 return (uint64(b[1]) << 56) | (uint64(b[2]) << 48) |
97 (uint64(b[3]) << 40) | (uint64(b[4]) << 32) |
98 (uint64(b[5]) << 24) | (uint64(b[6]) << 16) |
99 (uint64(b[7]) << 8) | (uint64(b[8]))
100}
101
102func putMuint32(b []byte, u uint32) {
103 _ = b[4] // bounds check elimination

Callers 5

ReadFloat64Method · 0.85
ReadInt64Method · 0.85
ReadUint64Method · 0.85
BenchmarkIntegersFunction · 0.85
ReadFloat64BytesFunction · 0.85

Calls

no outgoing calls

Tested by 1

BenchmarkIntegersFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…