All files / src/modes mode-bits.constants.js

100% Statements 12/12
100% Branches 0/0
100% Functions 0/0
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 131x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
export const MODE_NUMBER = 0b0001
export const MODE_ALPHA_NUM = 0b0010
export const MODE_8BIT_BYTE = 0b0100
export const MODE_KANJI = 0b1000
 
/**
 * @typedef {object} ModeObject
 * @property {string} data - mode data
 * @property {number} mode - mode bit sequence
 * @property {number} length - mode data length in bytes
 * @property {(buffer: import("./../utils/qr-bit-buffer.js").QrBitBuffer) => any} write - write to QrBitBuffer method
 */