MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / iremove

Method iremove

bitmapcontainer.go:395–402  ·  view source on GitHub ↗

iremove returns true if i was found.

(i uint16)

Source from the content-addressed store, hash-verified

393
394// iremove returns true if i was found.
395func (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
404func (bc *bitmapContainer) isFull() bool {
405 return bc.cardinality == int(MaxUint16)+1

Callers 1

Calls 1

containsMethod · 0.95

Tested by

no test coverage detected