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

Method inot

runcontainer.go:2474–2484  ·  view source on GitHub ↗

flip the values in the range [firstOfRange,endx)

(firstOfRange, endx int)

Source from the content-addressed store, hash-verified

2472
2473// flip the values in the range [firstOfRange,endx)
2474func (rc *runContainer16) inot(firstOfRange, endx int) container {
2475 if firstOfRange > endx {
2476 panic(fmt.Sprintf("invalid %v = endx > firstOfRange = %v", endx, firstOfRange))
2477 }
2478 if firstOfRange > endx {
2479 return rc
2480 }
2481 // TODO: minimize copies, do it all inplace; not() makes a copy.
2482 rc = rc.Not(firstOfRange, endx)
2483 return rc.toEfficientContainer()
2484}
2485
2486func (rc *runContainer16) rank(x uint16) int {
2487 n := len(rc.iv)

Callers

nothing calls this directly

Calls 2

NotMethod · 0.95
toEfficientContainerMethod · 0.95

Tested by

no test coverage detected