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
()
| 2188 | // from the 'FromBuffer' bitmap since they map have dependencies |
| 2189 | // on the buf array as well. |
| 2190 | func (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 |