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

Function GetInternalKey

src/leveldb/db/version_edit.cc:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static bool GetInternalKey(Slice* input, InternalKey* dst) {
87 Slice str;
88 if (GetLengthPrefixedSlice(input, &str)) {
89 return dst->DecodeFrom(str);
90 } else {
91 return false;
92 }
93}
94
95static bool GetLevel(Slice* input, int* level) {
96 uint32_t v;

Callers 1

DecodeFromMethod · 0.85

Calls 2

GetLengthPrefixedSliceFunction · 0.70
DecodeFromMethod · 0.45

Tested by

no test coverage detected