MCPcopy
hub / github.com/openacid/slim / Read

Method Read

index/index.go:28–28  ·  view source on GitHub ↗

Read value at `offset`, of `key`. Because the internal SlimTrie does not store complete info of a key(to reduce memory consumption). Thus the offset SlimTrie returns might not be correct for an abscent record. It is data providers' responsibility to check if the record at `offset` has the exact `key

(offset int64, key string)

Source from the content-addressed store, hash-verified

26 // It is data providers' responsibility to check if the record at `offset`
27 // has the exact `key`.
28 Read(offset int64, key string) (string, bool)
29}
30
31// OffsetIndexItem defines data types for a offset-based index, such as an index

Callers 3

DecodeMethod · 0.65
GetMethod · 0.65
RangeGetMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected