mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Support emptiness check on Bloom filters.
This commit is contained in:
parent
5736aef440
commit
5769c32f1e
9 changed files with 53 additions and 0 deletions
|
@ -253,6 +253,12 @@ public:
|
|||
*/
|
||||
bool Empty() const;
|
||||
|
||||
/**
|
||||
* Checks whether all bits are 0.
|
||||
* @return `true` iff all bits in all blocks are 0.
|
||||
*/
|
||||
bool AllZero() const;
|
||||
|
||||
/**
|
||||
* Finds the bit position of of the first 1-bit.
|
||||
* @return The position of the first bit that equals to one or `npos` if no
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue