IsEmpty returns true if the Bitmap is empty (it is faster than doing (GetCardinality() == 0))
()
| 1240 | |
| 1241 | // IsEmpty returns true if the Bitmap is empty (it is faster than doing (GetCardinality() == 0)) |
| 1242 | func (rb *Bitmap) IsEmpty() bool { |
| 1243 | return rb.highlowcontainer.size() == 0 |
| 1244 | } |
| 1245 | |
| 1246 | // GetCardinality returns the number of integers contained in the bitmap |
| 1247 | func (rb *Bitmap) GetCardinality() uint64 { |