MCPcopy Create free account
hub / github.com/facebook/CacheLib / reset

Method reset

cachelib/common/BloomFilter.cpp:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void BloomFilter::reset() {
119 if (bits_) {
120 // make the bits indicate that no keys are set
121 std::memset(bits_.get(), 0, getByteSize());
122 }
123}
124
125void BloomFilter::serializeBits(RecordWriter& rw, uint64_t fragmentSize) {
126 uint64_t bitsSize = getByteSize();

Callers 5

resetBucketLockedMethod · 0.45
testResetMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
~TestSetupMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 4

testResetMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
~TestSetupMethod · 0.36