(array *[]uint32)
| 450 | } |
| 451 | |
| 452 | func (rb *Bitmap) toArray(array *[]uint32) *[]uint32 { |
| 453 | pos := 0 |
| 454 | pos2 := 0 |
| 455 | |
| 456 | for pos < rb.highlowcontainer.size() { |
| 457 | hs := uint32(rb.highlowcontainer.getKeyAtIndex(pos)) << 16 |
| 458 | c := rb.highlowcontainer.getContainerAtIndex(pos) |
| 459 | pos++ |
| 460 | pos2 = c.fillLeastSignificant16bits(*array, pos2, hs) |
| 461 | } |
| 462 | return array |
| 463 | } |
| 464 | |
| 465 | // ToExistingArray stores all of the integers stored in the Bitmap in sorted order in the |
| 466 | // slice that is given to ToExistingArray. It is the callers duty to make sure the slice |
no test coverage detected