ToArray creates a new slice containing all of the integers stored in the Bitmap in sorted order
()
| 444 | |
| 445 | // ToArray creates a new slice containing all of the integers stored in the Bitmap in sorted order |
| 446 | func (rb *Bitmap) ToArray() []uint32 { |
| 447 | array := make([]uint32, rb.GetCardinality()) |
| 448 | ar := rb.toArray(&array) |
| 449 | return *ar |
| 450 | } |
| 451 | |
| 452 | func (rb *Bitmap) toArray(array *[]uint32) *[]uint32 { |
| 453 | pos := 0 |