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

Method Next

roaring.go:661–668  ·  view source on GitHub ↗

Next returns the next integer

()

Source from the content-addressed store, hash-verified

659
660// Next returns the next integer
661func (ii *intReverseIterator) Next() uint32 {
662 x := uint32(ii.iter.next()) | ii.hs
663 if !ii.iter.hasNext() {
664 ii.pos = ii.pos - 1
665 ii.init()
666 }
667 return x
668}
669
670// IntReverseIterator is meant to allow you to iterate through the values of a bitmap, see Initialize(a *Bitmap)
671type IntReverseIterator = intReverseIterator

Callers

nothing calls this directly

Calls 3

initMethod · 0.95
nextMethod · 0.65
hasNextMethod · 0.65

Tested by

no test coverage detected