iremove returns true if i was found.
(i uint16)
| 393 | |
| 394 | // iremove returns true if i was found. |
| 395 | func (bc *bitmapContainer) iremove(i uint16) bool { |
| 396 | if bc.contains(i) { |
| 397 | bc.cardinality-- |
| 398 | bc.bitmap[i/64] &^= (uint64(1) << (i % 64)) |
| 399 | return true |
| 400 | } |
| 401 | return false |
| 402 | } |
| 403 | |
| 404 | func (bc *bitmapContainer) isFull() bool { |
| 405 | return bc.cardinality == int(MaxUint16)+1 |
no test coverage detected