MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / CloneCopyOnWriteContainers

Method CloneCopyOnWriteContainers

roaring.go:2190–2192  ·  view source on GitHub ↗

CloneCopyOnWriteContainers clones all containers which have needCopyOnWrite set to true. This can be used to make sure it is safe to munmap a []byte that the roaring array may still have a reference to, after calling FromBuffer. More generally this function is useful if you call FromBuffer to constr

()

Source from the content-addressed store, hash-verified

2188// from the 'FromBuffer' bitmap since they map have dependencies
2189// on the buf array as well.
2190func (rb *Bitmap) CloneCopyOnWriteContainers() {
2191 rb.highlowcontainer.cloneCopyOnWriteContainers()
2192}
2193
2194// NextValue returns the next largest value in the bitmap, or -1
2195// if none is present. This function should not be used inside

Callers 2

TestCloneCOWContainersFunction · 0.95
TestBitmapFromBufferCOWFunction · 0.45

Calls 1

Tested by 2

TestCloneCOWContainersFunction · 0.76
TestBitmapFromBufferCOWFunction · 0.36