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)
| 466 | // slice that is given to ToExistingArray. It is the callers duty to make sure the slice |
| 467 | // has the right size. |
| 468 | func (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 |