(other: BitArray)
| 269 | } |
| 270 | |
| 271 | public appendBitArray(other: BitArray): void { |
| 272 | const otherSize = other.size; |
| 273 | this.ensureCapacity(this.size + otherSize); |
| 274 | // const appendBit = this.appendBit; |
| 275 | for (let i = 0; i < otherSize; i++) { |
| 276 | this.appendBit(other.get(i)); |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | public xor(other: BitArray): void { |
| 281 | if (this.size !== other.size) { |
no test coverage detected