()
| 96 | } |
| 97 | |
| 98 | func (bA *BitArray) copy() *BitArray { |
| 99 | c := make([]uint64, len(bA.Elems)) |
| 100 | copy(c, bA.Elems) |
| 101 | return &BitArray{ |
| 102 | Bits: bA.Bits, |
| 103 | Elems: c, |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func (bA *BitArray) copyBits(bits int) *BitArray { |
| 108 | c := make([]uint64, numElems(bits)) |