kencode

Crc8

open class Crc8(poly: Int = 7, init: Int = 0, refin: Boolean = false, refout: Boolean = false, xorOut: Int = 0) : Crc(source)

8-bit CRC; CRC-8/SMBUS by default.

Inheritors

Constructors

Crc8

constructor(poly: Int = 7, init: Int = 0, refin: Boolean = false, refout: Boolean = false, xorOut: Int = 0)(source)

Types

Link copied to clipboard
object Default : Crc8

CRC-8/SMBUS.

Properties

Link copied to clipboard
open override val size: Int

Digest size in bytes.

Functions

Link copied to clipboard

Appends the digest on encode; verifies and strips it on decode.

Link copied to clipboard
open override fun digest(data: ByteArray): ByteArray

Returns the size-byte digest of data.