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

Method Initialize

roaring.go:607–611  ·  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

605// the provided bitmap.
606// The iteration results are undefined if the bitmap is modified (e.g., with Add or Remove).
607func (ii *intIterator) Initialize(a *Bitmap) {
608 ii.pos = 0
609 ii.highlowcontainer = &a.highlowcontainer
610 ii.init()
611}
612
613type intReverseIterator struct {
614 pos int

Callers 7

IteratorMethod · 0.45
ReverseIteratorMethod · 0.45
ManyIteratorMethod · 0.45
UnsetIteratorMethod · 0.45
BenchmarkIterator123Function · 0.45
BenchmarkIteratorAllocFunction · 0.45

Calls 1

initMethod · 0.95

Tested by 2

BenchmarkIterator123Function · 0.36
BenchmarkIteratorAllocFunction · 0.36