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

Method getSizeInBytes

src/core/common/BitArray.ts:70–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 public getSizeInBytes(): number /*int*/ {
71 return Math.floor((this.size + 7) / 8);
72 }
73
74 private ensureCapacity(size: number /*int*/): void {
75 if (size > this.bits.length * 32) {

Callers 5

encodeMethod · 0.95
interleaveWithECBytesMethod · 0.95
terminateBitsMethod · 0.80
BitVector.spec.tsFile · 0.80
Encoder.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected