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

Method appendModeInfo

src/core/qrcode/encoder/Encoder.ts:484–486  ·  view source on GitHub ↗

* Append mode info. On success, store the result in "bits".

(mode: Mode, bits: BitArray)

Source from the content-addressed store, hash-verified

482 * Append mode info. On success, store the result in "bits".
483 */
484 public static appendModeInfo(mode: Mode, bits: BitArray): void {
485 bits.appendBits(mode.getBits(), 4);
486 }
487
488
489 /**

Callers 2

encodeMethod · 0.95
Encoder.spec.tsFile · 0.80

Calls 2

appendBitsMethod · 0.80
getBitsMethod · 0.45

Tested by

no test coverage detected