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

Method getWritableContainerAtIndex

roaringarray.go:348–354  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

346}
347
348func (ra *roaringArray) getWritableContainerAtIndex(i int) container {
349 if ra.needCopyOnWrite[i] {
350 ra.containers[i] = ra.containers[i].clone()
351 ra.needCopyOnWrite[i] = false
352 }
353 return ra.containers[i]
354}
355
356// getIndex returns the index of the container with key `x`
357// if no such container exists a negative value is returned

Callers 14

AddMethod · 0.45
addwithptrMethod · 0.45
CheckedAddMethod · 0.45
RemoveMethod · 0.45
CheckedRemoveMethod · 0.45
AndMethod · 0.45
XorMethod · 0.45
AndNotMethod · 0.45
FlipMethod · 0.45
AddRangeMethod · 0.45
RemoveRangeMethod · 0.45
lazyORMethod · 0.45

Calls 1

cloneMethod · 0.65

Tested by

no test coverage detected