Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
encode
Method · 0.95
interleaveWithECBytes
Method · 0.95
terminateBits
Method · 0.80
BitVector.spec.ts
File · 0.80
Encoder.spec.ts
File · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected