MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / Clear

Method Clear

roaring64/roaring64.go:212–214  ·  view source on GitHub ↗

Clear resets the Bitmap to be logically empty, but may retain some memory allocations that may speed up future operations

()

Source from the content-addressed store, hash-verified

210// Clear resets the Bitmap to be logically empty, but may retain
211// some memory allocations that may speed up future operations
212func (rb *Bitmap) Clear() {
213 rb.highlowcontainer.clear()
214}
215
216// ToArray creates a new slice containing all of the integers stored in the Bitmap in sorted order
217func (rb *Bitmap) ToArray() []uint64 {

Callers 3

TestBitmapCOWFunction · 0.95
TestBitmapFunction · 0.95
TestClear64Function · 0.45

Calls 1

clearMethod · 0.45

Tested by 3

TestBitmapCOWFunction · 0.76
TestBitmapFunction · 0.76
TestClear64Function · 0.36