[−][src]Function ihex::checksum
pub fn checksum<T>(data: T) -> u8 where
T: AsRef<[u8]>,
Computes the Intel HEX checksum of data
. This is done by summing all the bytes `data
and taking the two's complement of the least significant byte of the sum.