MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / iaddReturnMinimized

Method iaddReturnMinimized

bitmapcontainer.go:366–372  ·  view source on GitHub ↗
(i uint16)

Source from the content-addressed store, hash-verified

364}
365
366func (bc *bitmapContainer) iaddReturnMinimized(i uint16) container {
367 bc.iadd(i)
368 if bc.isFull() {
369 return newRunContainer16Range(0, MaxUint16)
370 }
371 return bc
372}
373
374// iadd adds the arg i, returning true if not already present
375func (bc *bitmapContainer) iadd(i uint16) bool {

Callers

nothing calls this directly

Calls 3

iaddMethod · 0.95
isFullMethod · 0.95
newRunContainer16RangeFunction · 0.85

Tested by

no test coverage detected