Versions in this module Expand all Collapse all v1 v1.0.10006 Aug 26, 2022 Changes in this version + type CRC struct + func NewCRC(params ...Params) *CRC + func (this *CRC) Checksum(data []byte) uint16 + func (this *CRC) Complete(crc uint16) uint16 + func (this *CRC) GetParams() Params + func (this *CRC) GetTable() [256]uint16 + func (this *CRC) Init() uint16 + func (this *CRC) MakeTable() *CRC + func (this *CRC) Update(crc uint16, data []byte) uint16 + func (this *CRC) WithParams(params Params) *CRC + func (this *CRC) WithTable(table [256]uint16) *CRC v1.0.10005 Jul 17, 2022 Changes in this version + func ToHexStringFromBytes(data []byte) string v1.0.10003 Jul 16, 2022 Changes in this version + const Size + var CRC12 = Params + func Checksum(data []byte, params Params) uint16 + func ChecksumCRC12(data []byte) uint16 + func ToBinString(data uint16) string + func ToHexString(data uint16) string + type Hash12 interface + Sum12 func() uint16 + func NewCRC12Hash(params Params) Hash12 + func NewHash(table *Table) Hash12 + type Params struct + Init uint16 + Poly uint16 + RefIn bool + RefOut bool + XorOut uint16 + type Table struct + func NewCRC12(params ...Params) *Table + func NewTable(params ...Params) *Table + func (this *Table) Checksum(data []byte) uint16 + func (this *Table) Complete(crc uint16) uint16 + func (this *Table) GetData() [256]uint16 + func (this *Table) GetParams() Params + func (this *Table) Init() uint16 + func (this *Table) MakeData() *Table + func (this *Table) Update(crc uint16, data []byte) uint16 + func (this *Table) WithData(data [256]uint16) *Table + func (this *Table) WithParams(params Params) *Table