MCPcopy
hub / github.com/RoaringBitmap/roaring / intIterator

Struct intIterator

roaring.go:529–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529type intIterator struct {
530 pos int
531 hs uint32
532 iter shortPeekable
533 highlowcontainer *roaringArray
534
535 // These embedded iterators per container type help reduce load in the GC.
536 // This way, instead of making up-to 64k allocations per full iteration
537 // we get a single allocation and simply reinitialize the appropriate
538 // iterator and point to it in the generic `iter` member on each key bound.
539 shortIter shortIterator
540 runIter runIterator16
541 bitmapIter bitmapContainerShortIterator
542}
543
544// HasNext returns true if there are more integers to iterate over
545func (ii *intIterator) HasNext() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected