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

Function DecodeKey

src/leveldb/util/cache_test.cc:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 return result;
18}
19static int DecodeKey(const Slice& k) {
20 assert(k.size() == 4);
21 return DecodeFixed32(k.data());
22}
23static void* EncodeValue(uintptr_t v) { return reinterpret_cast<void*>(v); }
24static int DecodeValue(void* v) { return reinterpret_cast<uintptr_t>(v); }
25

Callers 1

DeleterMethod · 0.85

Calls 3

DecodeFixed32Function · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected