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

Method hasNext

runcontainer.go:1129–1132  ·  view source on GitHub ↗

hasNext returns false if calling next will panic. It returns true when there is at least one more value available in the iteration sequence.

()

Source from the content-addressed store, hash-verified

1127// returns true when there is at least one more value
1128// available in the iteration sequence.
1129func (ri *runIterator16) hasNext() bool {
1130 return len(ri.rc.iv) > ri.curIndex+1 ||
1131 (len(ri.rc.iv) == ri.curIndex+1 && ri.rc.iv[ri.curIndex].length >= ri.curPosInIndex)
1132}
1133
1134// next returns the next value in the iteration sequence.
1135func (ri *runIterator16) next() uint16 {

Callers 4

iterateMethod · 0.95
advanceIfNeededMethod · 0.95
nextManyMethod · 0.95
nextMany64Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected