IsEmpty returns true if the Bitmap is empty (it is faster than doing (GetCardinality() == 0))
()
| 381 | |
| 382 | // IsEmpty returns true if the Bitmap is empty (it is faster than doing (GetCardinality() == 0)) |
| 383 | func (rb *Bitmap) IsEmpty() bool { |
| 384 | return rb.highlowcontainer.size() == 0 |
| 385 | } |
| 386 | |
| 387 | // GetCardinality returns the number of integers contained in the bitmap |
| 388 | func (rb *Bitmap) GetCardinality() uint64 { |