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

Method NextMany64

roaring.go:738–755  ·  view source on GitHub ↗
(hs64 uint64, buf []uint64)

Source from the content-addressed store, hash-verified

736}
737
738func (ii *manyIntIterator) NextMany64(hs64 uint64, buf []uint64) int {
739 n := 0
740 for n < len(buf) {
741 if ii.iter == nil {
742 break
743 }
744
745 hs := uint64(ii.hs) | hs64
746 moreN := ii.iter.nextMany64(hs, buf[n:])
747 n += moreN
748 if moreN == 0 {
749 ii.pos = ii.pos + 1
750 ii.init()
751 }
752 }
753
754 return n
755}
756
757// ManyIntIterator is meant to allow you to iterate through the values of a bitmap, see Initialize(a *Bitmap)
758type ManyIntIterator = manyIntIterator

Callers

nothing calls this directly

Calls 2

initMethod · 0.95
nextMany64Method · 0.65

Tested by

no test coverage detected