Skip to content

Commit 35c9afa

Browse files
committed
added documentation for ToExistingArray
1 parent c579ab5 commit 35c9afa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roaring.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,9 @@ func (rb *Bitmap) toArray(array *[]uint32) *[]uint32 {
438438
return array
439439
}
440440

441+
// ToExistingArray stores all of the integers stored in the Bitmap in sorted order in the
442+
// slice that is given to ToExistingArray. It is the callers duty to make sure the slice
443+
// has the right size.
441444
func (rb *Bitmap) ToExistingArray(array *[]uint32) *[]uint32 {
442445
return rb.toArray(array)
443446
}

0 commit comments

Comments
 (0)