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

Method Remove

src/leveldb/util/cache.cc:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 LRUHandle* Remove(const Slice& key, uint32_t hash) {
95 LRUHandle** ptr = FindPointer(key, hash);
96 LRUHandle* result = *ptr;
97 if (result != nullptr) {
98 *ptr = result->next_hash;
99 --elems_;
100 }
101 return result;
102 }
103
104 private:
105 // The table consists of an array of buckets where each bucket is

Callers 9

BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80
WriteBlockMethod · 0.80
ReverseBlockMethod · 0.80
LockFileMethod · 0.80
UnlockFileMethod · 0.80
InsertMethod · 0.80
EraseMethod · 0.80
PruneMethod · 0.80

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64