struct Goban::QR::Version

Overview

Represents a version number of the QR Code symbol. Possible versions range from 1 to 40, and the higher the number, the large the size of the final QR Code symbol.

Defined in:

goban/qr/version.cr

Constant Summary

MAX = 40_u8
MIN = 1_u8
VERSION_BITS = {-1, -1, -1, -1, -1, -1, -1, 31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017}

Constructors

Instance Method Summary

Instance methods inherited from struct Goban::AbstractQR::Version

<=>(other : Int) <=>, symbol_size symbol_size, to_i to_i, value value

Constructor Detail

def self.new(value) #

Instance Method Detail

def max_data_bits(ecl : ECC::Level) #

Maximum number of data bits that can be contained in the QR Code symbol of this version. This does not include the number of error correction codewords.


def max_data_codewords(ecl : ECC::Level) #

Maximum number of data codewords that can be contained in the QR Code symbol of this version. This does not include the number of error correction codewords.