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

Function readTimestampFromEntry

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

Source from the content-addressed store, hash-verified

55}
56
57func readTimestampFromEntry(data []byte) uint64 {
58 return binary.LittleEndian.Uint64(data)
59}
60
61func readKeyFromEntry(data []byte) string {
62 length := binary.LittleEndian.Uint16(data[timestampSizeInBytes+hashSizeInBytes:])

Callers 5

isExpiredMethod · 0.85
setCurrentEntryMethod · 0.85
onEvictMethod · 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…