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

Method appendWithoutCopy

roaring64/roaringarray64.go:40–43  ·  view source on GitHub ↗
(sa roaringArray64, startingindex int)

Source from the content-addressed store, hash-verified

38}
39
40func (ra *roaringArray64) appendWithoutCopy(sa roaringArray64, startingindex int) {
41 mustCopyOnWrite := sa.needCopyOnWrite[startingindex]
42 ra.appendContainer(sa.keys[startingindex], sa.containers[startingindex], mustCopyOnWrite)
43}
44
45func (ra *roaringArray64) appendCopy(sa roaringArray64, startingindex int) {
46 // cow only if the two request it, or if we already have a lightweight copy

Callers 1

appendWithoutCopyManyMethod · 0.95

Calls 1

appendContainerMethod · 0.95

Tested by

no test coverage detected