MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / ExtractUserKey

Function ExtractUserKey

src/leveldb/db/dbformat.h:98–101  ·  view source on GitHub ↗

Returns the user key portion of an internal key.

Source from the content-addressed store, hash-verified

96
97// Returns the user key portion of an internal key.
98inline Slice ExtractUserKey(const Slice& internal_key) {
99 assert(internal_key.size() >= 8);
100 return Slice(internal_key.data(), internal_key.size() - 8);
101}
102
103inline ValueType ExtractValueType(const Slice& internal_key) {
104 assert(internal_key.size() >= 8);

Callers 10

user_keyMethod · 0.85
keyMethod · 0.85
NextMethod · 0.85
PrevMethod · 0.85
FindPrevUserEntryMethod · 0.85
CompareMethod · 0.85
FindShortestSeparatorMethod · 0.85
FindShortSuccessorMethod · 0.85
CreateFilterMethod · 0.85
KeyMayMatchMethod · 0.85

Calls 3

SliceClass · 0.50
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected