(sa roaringArray, startingindex int)
| 149 | } |
| 150 | |
| 151 | func (ra *roaringArray) appendWithoutCopy(sa roaringArray, startingindex int) { |
| 152 | mustCopyOnWrite := sa.needCopyOnWrite[startingindex] |
| 153 | ra.appendContainer(sa.keys[startingindex], sa.containers[startingindex], mustCopyOnWrite) |
| 154 | } |
| 155 | |
| 156 | func (ra *roaringArray) appendCopy(sa roaringArray, startingindex int) { |
| 157 | // cow only if the two request it, or if we already have a lightweight copy |
no test coverage detected