crc

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2018 License: AGPL-3.0 Imports: 1 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(init uint16, data []byte, table Table) (crc uint16)

Types

type CRC

type CRC struct {
	Name    string
	Init    uint16
	Poly    uint16
	Residue uint16
	// contains filtered or unexported fields
}

func NewCRC

func NewCRC(name string, init, poly, residue uint16) (crc CRC)

func (CRC) Checksum

func (crc CRC) Checksum(data []byte) uint16

func (CRC) String

func (crc CRC) String() string

type Table

type Table [256]uint16

func NewTable

func NewTable(poly uint16) (table Table)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL