struct Goban::MQR::Version

Overview

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

Defined in:

goban/mqr/version.cr

Constant Summary

MAX = 4_u8
MIN = 1_u8
SYMBOL_NUMS = {NamedTuple.new, {Low: 0, Medium: 0, Quartile: 0}, {Low: 1, Medium: 2, Quartile: -1}, {Low: 3, Medium: 4, Quartile: -1}, {Low: 5, Medium: 6, Quartile: 7}}

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 : Int) #

[View source]

Instance Method Detail

def max_data_bits(ecl : ECC::Level) #

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


[View source]
def max_data_codewords(ecl : ECC::Level) #

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


[View source]