MCPcopy Create free account
hub / github.com/allegro/bigcache / readHashFromEntry

Function readHashFromEntry

encoding.go:77–79  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

75}
76
77func readHashFromEntry(data []byte) uint64 {
78 return binary.LittleEndian.Uint64(data[timestampSizeInBytes:])
79}
80
81func resetKeyFromEntry(data []byte) {
82 binary.LittleEndian.PutUint64(data[timestampSizeInBytes:], 0)

Callers 4

removeOldestEntryMethod · 0.85
setCurrentEntryMethod · 0.85
TestEncodeDecodeFunction · 0.85
TestAllocateBiggerBufferFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestEncodeDecodeFunction · 0.68
TestAllocateBiggerBufferFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…