Versions in this module Expand all Collapse all v0 v0.0.2 May 13, 2020 v0.0.1 May 13, 2020 Changes in this version + const BankSize + type CRC16 struct + Poly uint16 + func NewCCITTCRC16() *CRC16 + func NewIBMCRC16() *CRC16 + func NewSCSICRC16() *CRC16 + func (c *CRC16) AddECC(input []byte) []byte + func (c *CRC16) CheckECC(input []byte) ([]byte, error) + type CRC32 struct + Poly uint32 + func NewCastagnoliCRC32() *CRC32 + func NewIEEECRC32() *CRC32 + func NewKoopmanCRC32() *CRC32 + func (c *CRC32) AddECC(input []byte) []byte + func (c *CRC32) CheckECC(input []byte) ([]byte, error) + type CRC64 struct + Poly uint64 + func NewECMACRC64() *CRC64 + func NewISOCRC64() *CRC64 + func (c *CRC64) AddECC(input []byte) []byte + func (c *CRC64) CheckECC(input []byte) ([]byte, error) + type Codec interface + BytesToWords func([]byte) ([]string, error) + WordsToBytes func([]string) ([]byte, error) + type ECC interface + AddECC func([]byte) []byte + CheckECC func([]byte) ([]byte, error) + type NoECC struct + func (_ NoECC) AddECC(input []byte) []byte + func (_ NoECC) CheckECC(input []byte) ([]byte, error) + type WordCodec struct + func LoadCodec(bank string) (codec *WordCodec, err error) + func MustLoadCodec(bank string) *WordCodec + func NewCodec(words []string) (codec *WordCodec, err error) + func (c *WordCodec) BytesToWords(raw []byte) (words []string, err error) + func (c *WordCodec) GetIndex(word string) (int, error) + func (c *WordCodec) WordsToBytes(words []string) ([]byte, error)