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

Method appendContainer

roaringarray.go:145–149  ·  view source on GitHub ↗
(key uint16, value container, mustCopyOnWrite bool)

Source from the content-addressed store, hash-verified

143}
144
145func (ra *roaringArray) appendContainer(key uint16, value container, mustCopyOnWrite bool) {
146 ra.keys = append(ra.keys, key)
147 ra.containers = append(ra.containers, value)
148 ra.needCopyOnWrite = append(ra.needCopyOnWrite, mustCopyOnWrite)
149}
150
151func (ra *roaringArray) appendWithoutCopy(sa roaringArray, startingindex int) {
152 mustCopyOnWrite := sa.needCopyOnWrite[startingindex]

Callers 15

appendWithoutCopyMethod · 0.95
appendCopyMethod · 0.95
appendCopiesUntilMethod · 0.95
appendCopiesAfterMethod · 0.95
FromDenseMethod · 0.45
AddOffset64Function · 0.45
OrFunction · 0.45
AndFunction · 0.45
XorFunction · 0.45
AndNotFunction · 0.45
TestRoaringArrayCOWFunction · 0.45
lazyORFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestRoaringArrayCOWFunction · 0.36
TestRoaringArrayFunction · 0.36