CrcX25

class CrcX25

X25 hash calculator used for computing the MAVLink frame checksums.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Adds the given Byte to the hash.

fun accumulate(str: String)

Adds the given string to the hash. The string is encoded as UTF-8.

fun accumulate(bytes: ByteArray, start: Int = 0, end: Int = bytes.size)

Adds the given ByteArray from the start to the end indices to the hash.

Link copied to clipboard
fun get(): UShort

Returns the current hash value.