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

Method next

runcontainer.go:1135–1146  ·  view source on GitHub ↗

next returns the next value in the iteration sequence.

()

Source from the content-addressed store, hash-verified

1133
1134// next returns the next value in the iteration sequence.
1135func (ri *runIterator16) next() uint16 {
1136 next := ri.rc.iv[ri.curIndex].start + ri.curPosInIndex
1137
1138 if ri.curPosInIndex == ri.rc.iv[ri.curIndex].length {
1139 ri.curPosInIndex = 0
1140 ri.curIndex++
1141 } else {
1142 ri.curPosInIndex++
1143 }
1144
1145 return next
1146}
1147
1148// peekNext returns the next value in the iteration sequence without advancing the iterator
1149func (ri *runIterator16) peekNext() uint16 {

Callers 1

iterateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected