MCPcopy Create free account
hub / github.com/ElementsProject/elements / ExtractUserKey

Function ExtractUserKey

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

Returns the user key portion of an internal key.

Source from the content-addressed store, hash-verified

93
94// Returns the user key portion of an internal key.
95inline Slice ExtractUserKey(const Slice& internal_key) {
96 assert(internal_key.size() >= 8);
97 return Slice(internal_key.data(), internal_key.size() - 8);
98}
99
100// A comparator for internal keys that uses a specified comparator for
101// the user key portion and breaks ties by decreasing sequence number.

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