(i int)
| 346 | } |
| 347 | |
| 348 | func (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 |
no test coverage detected