MCPcopy
hub / github.com/RoaringBitmap/roaring / Clone

Method Clone

roaring.go:1036–1040  ·  view source on GitHub ↗

Clone creates a copy of the Bitmap

()

Source from the content-addressed store, hash-verified

1034
1035// Clone creates a copy of the Bitmap
1036func (rb *Bitmap) Clone() *Bitmap {
1037 ptr := new(Bitmap)
1038 ptr.highlowcontainer = *rb.highlowcontainer.clone()
1039 return ptr
1040}
1041
1042// Minimum get the smallest value stored in this roaring bitmap, assumes that it is not empty
1043func (rb *Bitmap) Minimum() uint32 {

Callers 15

TestIssue386Function · 0.95
TestCloneOfCOWFunction · 0.95
TestBitmapExtraCOWFunction · 0.95
TestBitmapCOWFunction · 0.95
rTestCOWFunction · 0.95
TestBitmapExtraFunction · 0.95
TestBitmapFunction · 0.95
rTestFunction · 0.95
TestIssue396Function · 0.95

Calls 1

cloneMethod · 0.65

Tested by 15

TestIssue386Function · 0.76
TestCloneOfCOWFunction · 0.76
TestBitmapExtraCOWFunction · 0.76
TestBitmapCOWFunction · 0.76
rTestCOWFunction · 0.76
TestBitmapExtraFunction · 0.76
TestBitmapFunction · 0.76
rTestFunction · 0.76
TestIssue396Function · 0.76