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

Method Clone

roaring64/roaring64.go:287–291  ·  view source on GitHub ↗

Clone creates a copy of the Bitmap

()

Source from the content-addressed store, hash-verified

285
286// Clone creates a copy of the Bitmap
287func (rb *Bitmap) Clone() *Bitmap {
288 ptr := new(Bitmap)
289 ptr.highlowcontainer = *rb.highlowcontainer.clone()
290 return ptr
291}
292
293// Minimum get the smallest value stored in this roaring bitmap, assumes that it is not empty
294func (rb *Bitmap) Minimum() uint64 {

Callers 12

TestIssue386Function · 0.95
TestCloneOfCOWFunction · 0.95
TestCloneOfCOWRangeFunction · 0.95
TestBitmapExtraCOWFunction · 0.95
TestBitmapCOWFunction · 0.95
rTestCOWFunction · 0.95
TestOrCOWSharedContainerFunction · 0.95
TestBitmapExtraFunction · 0.95
TestBitmapFunction · 0.95
rTestFunction · 0.95
OrMethod · 0.45
FlipFunction · 0.45

Calls 1

cloneMethod · 0.65

Tested by 10

TestIssue386Function · 0.76
TestCloneOfCOWFunction · 0.76
TestCloneOfCOWRangeFunction · 0.76
TestBitmapExtraCOWFunction · 0.76
TestBitmapCOWFunction · 0.76
rTestCOWFunction · 0.76
TestOrCOWSharedContainerFunction · 0.76
TestBitmapExtraFunction · 0.76
TestBitmapFunction · 0.76
rTestFunction · 0.76