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

Method advanceIfNeeded

bitmapcontainer.go:152–156  ·  view source on GitHub ↗
(minval uint16)

Source from the content-addressed store, hash-verified

150}
151
152func (bcsi *bitmapContainerShortIterator) advanceIfNeeded(minval uint16) {
153 if bcsi.hasNext() && bcsi.peekNext() < minval {
154 bcsi.i = bcsi.ptr.NextSetBit(uint(minval))
155 }
156}
157
158func newBitmapContainerShortIterator(a *bitmapContainer) *bitmapContainerShortIterator {
159 return &bitmapContainerShortIterator{a, a.NextSetBit(0)}

Callers

nothing calls this directly

Calls 3

hasNextMethod · 0.95
peekNextMethod · 0.95
NextSetBitMethod · 0.80

Tested by

no test coverage detected