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

Method Next

roaring.go:568–575  ·  view source on GitHub ↗

Next returns the next integer

()

Source from the content-addressed store, hash-verified

566
567// Next returns the next integer
568func (ii *intIterator) Next() uint32 {
569 x := uint32(ii.iter.next()) | ii.hs
570 if !ii.iter.hasNext() {
571 ii.pos = ii.pos + 1
572 ii.init()
573 }
574 return x
575}
576
577// PeekNext peeks the next value without advancing the iterator
578func (ii *intIterator) PeekNext() uint32 {

Callers 1

Calls 3

initMethod · 0.95
nextMethod · 0.65
hasNextMethod · 0.65

Tested by

no test coverage detected