MCPcopy Create free account
hub / github.com/LockGit/gochat / unalignedLoad64

Function unalignedLoad64

tools/cityhash.go:40–50  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

38}
39
40func unalignedLoad64(p []byte) (result uint64) {
41 return binary.LittleEndian.Uint64(p)
42 /*
43 if little {
44 result = binary.LittleEndian.Uint64(p)
45 } else {
46 result = binary.BigEndian.Uint64(p)
47 }
48 return result
49 */
50}
51
52func unalignedLoad32(p []byte) (result uint32) {
53 return binary.LittleEndian.Uint32(p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected