MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / CRCModel

Struct CRCModel

checksum/crc8.go:17–24  ·  view source on GitHub ↗

CRCModel contains the necessary parameters for calculating the DRC algorithm

Source from the content-addressed store, hash-verified

15
16// CRCModel contains the necessary parameters for calculating the DRC algorithm
17type CRCModel struct {
18 Poly uint8
19 Init uint8
20 RefIn bool
21 RefOut bool
22 XorOut uint8
23 Name string
24}
25
26// CRC8 calculates CRC8 checksum of the given data.
27func CRC8(data []byte, model CRCModel) uint8 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected