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

Method Initialize

roaring.go:676–680  ·  view source on GitHub ↗

Initialize configures the existing iterator so that it can iterate through the values of the provided bitmap. The iteration results are undefined if the bitmap is modified (e.g., with Add or Remove).

(a *Bitmap)

Source from the content-addressed store, hash-verified

674// the provided bitmap.
675// The iteration results are undefined if the bitmap is modified (e.g., with Add or Remove).
676func (ii *intReverseIterator) Initialize(a *Bitmap) {
677 ii.highlowcontainer = &a.highlowcontainer
678 ii.pos = a.highlowcontainer.size() - 1
679 ii.init()
680}
681
682// ManyIntIterable allows you to iterate over the values in a Bitmap
683type ManyIntIterable interface {

Callers

nothing calls this directly

Calls 2

initMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected