Versions in this module Expand all Collapse all v1 v1.0.3 Jul 25, 2024 v1.0.0 Sep 22, 2017 Changes in this version + func IntToRune(i int) rune + func New1DCode(codeKind, content string, bars *BitList) barcode.Barcode + func New1DCodeIntCheckSum(codeKind, content string, bars *BitList, checksum int) barcode.BarcodeIntCS + func RuneToInt(r rune) int + type BitList struct + func NewBitList(capacity int) *BitList + func (bl *BitList) AddBit(bits ...bool) + func (bl *BitList) AddBits(b int, count byte) + func (bl *BitList) AddByte(b byte) + func (bl *BitList) GetBit(index int) bool + func (bl *BitList) GetBytes() []byte + func (bl *BitList) IterateBytes() <-chan byte + func (bl *BitList) Len() int + func (bl *BitList) SetBit(index int, value bool) + type GFPoly struct + Coefficients []int + func NewGFPoly(field *GaloisField, coefficients []int) *GFPoly + func NewMonominalPoly(field *GaloisField, degree int, coeff int) *GFPoly + func (gp *GFPoly) AddOrSubstract(other *GFPoly) *GFPoly + func (gp *GFPoly) Degree() int + func (gp *GFPoly) Divide(other *GFPoly) (quotient *GFPoly, remainder *GFPoly) + func (gp *GFPoly) GetCoefficient(degree int) int + func (gp *GFPoly) MultByMonominal(degree int, coeff int) *GFPoly + func (gp *GFPoly) Multiply(other *GFPoly) *GFPoly + func (gp *GFPoly) Zero() bool + type GaloisField struct + ALogTbl []int + Base int + LogTbl []int + Size int + func NewGaloisField(pp, fieldSize, b int) *GaloisField + func (gf *GaloisField) AddOrSub(a, b int) int + func (gf *GaloisField) Divide(a, b int) int + func (gf *GaloisField) Invers(num int) int + func (gf *GaloisField) Multiply(a, b int) int + func (gf *GaloisField) Zero() *GFPoly + type ReedSolomonEncoder struct + func NewReedSolomonEncoder(gf *GaloisField) *ReedSolomonEncoder + func (rs *ReedSolomonEncoder) Encode(data []int, eccCount int) []int