FormatInformation

Encapsulates a QR Code's format information, including the data mask used and error correction level.

Constructors

this
this(int formatInfo)
Undocumented in source.

Members

Functions

equals
bool equals(FormatInformation other)

Verifies if this instance equals another one.

getDataMask
int getDataMask()

Gets the data mask.

getErrorCorrectionLevel
ErrorCorrectionLevel getErrorCorrectionLevel()

Gets the error correction level.

hashCode
int hashCode()

Hashes the code of the EC level.

Static functions

decodeFormatInformation
FormatInformation decodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2)

Decodes format information.

doDecodeFormatInformation
FormatInformation doDecodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2)

Internal method for decoding format information.

numBitsDiffering
int numBitsDiffering(int a, int b)

Checks how many bits are different between two integers.

Static variables

bitsSetInHalfByte
int[] bitsSetInHalfByte;

Offset i holds the number of 1 bits in the binary representation of i.

formatInfoDecodeLookup
int[][] formatInfoDecodeLookup;

Lookup table for decoding format information.

Variables

FORMAT_INFO_MASK_QR
enum int FORMAT_INFO_MASK_QR;

Mask for format information.

dataMask
int dataMask;

Data mask.

ecLevel
ErrorCorrectionLevel ecLevel;

Error correction level.

Meta