MCPcopy
hub / github.com/zxing-js/library / appendBitArray

Method appendBitArray

src/core/common/BitArray.ts:271–278  ·  view source on GitHub ↗
(other: BitArray)

Source from the content-addressed store, hash-verified

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) {

Callers 2

encodeMethod · 0.95
BitVector.spec.tsFile · 0.80

Calls 3

ensureCapacityMethod · 0.95
appendBitMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected