mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +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
|
@ -463,6 +463,14 @@ bool BitVector::Empty() const
|
|||
return bits.empty();
|
||||
}
|
||||
|
||||
bool BitVector::AllZero() const
|
||||
{
|
||||
for ( size_t i = 0; i < bits.size(); ++i )
|
||||
if ( bits[i] )
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
BitVector::size_type BitVector::FindFirst() const
|
||||
{
|
||||
return find_from(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue