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

Method ToExistingArray

roaring.go:468–470  ·  view source on GitHub ↗

ToExistingArray stores all of the integers stored in the Bitmap in sorted order in the slice that is given to ToExistingArray. It is the callers duty to make sure the slice has the right size.

(array *[]uint32)

Source from the content-addressed store, hash-verified

466// slice that is given to ToExistingArray. It is the callers duty to make sure the slice
467// has the right size.
468func (rb *Bitmap) ToExistingArray(array *[]uint32) *[]uint32 {
469 return rb.toArray(array)
470}
471
472// GetSizeInBytes estimates the memory usage of the Bitmap. Note that this
473// might differ slightly from the amount of bytes required for persistent storage

Callers 1

TestBitmapFunction · 0.95

Calls 1

toArrayMethod · 0.95

Tested by 1

TestBitmapFunction · 0.76