Versions in this module Expand all Collapse all v0 v0.0.1 Mar 1, 2020 Changes in this version + const MaxVersion + const MinVersion + var Field = gf256.NewField(0x11d, 2) + type Alpha string + func (s Alpha) Bits(v Version) int + func (s Alpha) Check() error + func (s Alpha) Encode(b *Bits, v Version) + func (s Alpha) String() string + type Bits struct + func (b *Bits) AddCheckBytes(v Version, l Level) + func (b *Bits) Append(p []byte) + func (b *Bits) Bits() int + func (b *Bits) Bytes() []byte + func (b *Bits) Pad(n int) + func (b *Bits) Reset() + func (b *Bits) Write(v uint, nbit int) + type Code struct + Bitmap []byte + Size int + Stride int + func (c *Code) Black(x, y int) bool + type Encoding interface + Bits func(v Version) int + Check func() error + Encode func(b *Bits, v Version) + type Level int + const H + const L + const M + const Q + func (l Level) String() string + type Mask int + func (m Mask) Invert(y, x int) bool + type Num string + func (s Num) Bits(v Version) int + func (s Num) Check() error + func (s Num) Encode(b *Bits, v Version) + func (s Num) String() string + type Pixel uint32 + const Black + const Invert + func OffsetPixel(o uint) Pixel + func (p Pixel) Offset() uint + func (p Pixel) Role() PixelRole + func (p Pixel) String() string + type PixelRole uint32 + const Alignment + const Check + const Data + const Extra + const Format + const PVersion + const Position + const Timing + const Unused + func (r PixelRole) Pixel() Pixel + func (r PixelRole) String() string + type Plan struct + Blocks int + CheckBytes int + DataBytes int + Level Level + Mask Mask + Pixel [][]Pixel + Version Version + func NewPlan(version Version, level Level, mask Mask) (*Plan, error) + func (p *Plan) Encode(text ...Encoding) (*Code, error) + type String string + func (s String) Bits(v Version) int + func (s String) Check() error + func (s String) Encode(b *Bits, v Version) + func (s String) String() string + type Version int + func (v Version) DataBytes(l Level) int + func (v Version) String() string