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

Method appendWithoutCopy

roaringarray.go:151–154  ·  view source on GitHub ↗
(sa roaringArray, startingindex int)

Source from the content-addressed store, hash-verified

149}
150
151func (ra *roaringArray) appendWithoutCopy(sa roaringArray, startingindex int) {
152 mustCopyOnWrite := sa.needCopyOnWrite[startingindex]
153 ra.appendContainer(sa.keys[startingindex], sa.containers[startingindex], mustCopyOnWrite)
154}
155
156func (ra *roaringArray) appendCopy(sa roaringArray, startingindex int) {
157 // 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