#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mavlink_crc16_mcrf4xx(
bytes: *const u8,
bytes_len: usize,
) -> u16Expand description
Returns the CRC-16/MCRF4XX checksum of a byte string.
This is the checksum every MAVLink frame carries, exposed because a host that implements part of the protocol itself still needs the same arithmetic.
§Arguments
bytes- the data to checksum.bytes_len- how many bytesbytesholds.
§Returns
The checksum, or 0 if bytes is null with a non-zero length.
§Safety
When bytes_len is non-zero, bytes must point to at least bytes_len
readable bytes.