MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / NextMany

Method NextMany

roaring.go:721–736  ·  view source on GitHub ↗
(buf []uint32)

Source from the content-addressed store, hash-verified

719}
720
721func (ii *manyIntIterator) NextMany(buf []uint32) int {
722 n := 0
723 for n < len(buf) {
724 if ii.iter == nil {
725 break
726 }
727 moreN := ii.iter.nextMany(ii.hs, buf[n:])
728 n += moreN
729 if moreN == 0 {
730 ii.pos = ii.pos + 1
731 ii.init()
732 }
733 }
734
735 return n
736}
737
738func (ii *manyIntIterator) NextMany64(hs64 uint64, buf []uint64) int {
739 n := 0

Callers

nothing calls this directly

Calls 2

initMethod · 0.95
nextManyMethod · 0.65

Tested by

no test coverage detected