Goban::ECC::RSInflator
Module for generating redundant Reed-Solomon error correction bits.
Constants
GEN_POLYS = begin
a = uninitialized ::StaticArray(GFPoly, 31)
a[0] = GFPoly.new(Slice[1_u8])
(1_u8..30_u8).each do |d|
last_gen = a[d - 1]
a[d] = last_gen.mul(Slice[1_u8, GF.exp(d - 1)])
end
a
end
Instance methods
inflate_codewords(codewords : Slice(UInt8), version : QR::Version | RMQR::Version, ecl : Level)
Sourceinflate_codewords(codewords : Slice(UInt8), version : MQR::Version, ecl : Level)
Source