MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / UpdateEmptyFull

Method UpdateEmptyFull

src/commons/bloom.cpp:140–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void CBloomFilter::UpdateEmptyFull() {
141 bool full = true;
142 bool empty = true;
143 for (uint32_t i = 0; i < vData.size(); i++) {
144 full &= vData[i] == 0xff;
145 empty &= vData[i] == 0;
146 }
147 isFull = full;
148 isEmpty = empty;
149}
150
151void CBloomFilter::Clear() {
152 vData.assign(vData.size(), 0);

Callers 1

ProcessFilterLoadMessageFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected