Clone makes a copy of the bit array.
()
| 99 | |
| 100 | // Clone makes a copy of the bit array. |
| 101 | func (d BitArray) Clone() BitArray { |
| 102 | return BitArray{ |
| 103 | words: append([]word(nil), d.words...), |
| 104 | lastBitsUsed: d.lastBitsUsed, |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | // MakeZeroBitArray creates a bit array with the specified bit size. |
| 109 | func MakeZeroBitArray(bitLen uint) BitArray { |
no outgoing calls
no test coverage detected