MCPcopy Index your code
hub / github.com/Workiva/go-datastructures / copy

Method copy

bitarray/bitarray.go:349–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347}
348
349func (ba *bitArray) copy() BitArray {
350 blocks := make(blocks, len(ba.blocks))
351 copy(blocks, ba.blocks)
352 return &bitArray{
353 blocks: blocks,
354 lowest: ba.lowest,
355 highest: ba.highest,
356 anyset: ba.anyset,
357 }
358}
359
360// newBitArray returns a new dense BitArray at the specified size. This is a
361// separate private constructor so unit tests don't have to constantly cast the

Callers 6

orDenseWithDenseBitArrayFunction · 0.45
TestCopyBitArrayFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestCopyBitArrayFunction · 0.36