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

Method advanceIfNeeded

shortiterator.go:33–37  ·  view source on GitHub ↗
(minval uint16)

Source from the content-addressed store, hash-verified

31}
32
33func (si *shortIterator) advanceIfNeeded(minval uint16) {
34 if si.hasNext() && si.peekNext() < minval {
35 si.loc = advanceUntil(si.slice, si.loc, len(si.slice), minval)
36 }
37}
38
39type reverseIterator struct {
40 slice []uint16

Callers

nothing calls this directly

Calls 3

hasNextMethod · 0.95
peekNextMethod · 0.95
advanceUntilFunction · 0.85

Tested by

no test coverage detected