QrSegment

constructor(mode: QrSegment.Mode, numChars: Int, data: BitBuffer)

Constructs a QR Code segment with the specified attributes and data. The character count (numCh) must agree with the mode and the bit buffer length, but the constraint isn't checked. The specified bit buffer is cloned and stored.

Parameters

mode

mode indicator of this segment (not null)

numChars

The length of this segment's unencoded data. Measured in characters for numeric/alphanumeric/kanji mode, bytes for byte mode, and 0 for ECI mode. Always zero or positive. Not the same as the data's bit length.

data

the data bits (not null)