Documentation
¶
Index ¶
- func Decode8Array(input []byte) ([]byte, error)
- func Decode8Chunks(input [][]byte) ([][]byte, int)
- func Encode16(input []byte) uint16
- func Encode32(input []byte) uint32
- func Encode8(input []byte) byte
- func Encode8Chunks(input [][]byte) [][]byte
- func Match16(input []byte, checksum uint16) bool
- func Match32(input []byte, checksum uint32) bool
- func Match8(input []byte, checksum byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode8Array ¶
Function that strips prepended crc8 checksum from []byte and verifies it, if valid returns the byte array without the checksum, if invalid returns nil
func Decode8Chunks ¶
Function that goes over [][]byte and takes prepended crc8 from each byte array and verifies it, if invalid it nullifies the byte array, if valid it strips the checksum and returns the byte array
func Encode8Chunks ¶
Function that goes over [][]byte and prepends crc8 checksum to each byte array
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.