pub fn calc_fletcher16(data: &[u8]) -> u16 {
    let mut checksum = Fletcher16::new();
    checksum.update(data);
    checksum.value()
}
/// Get the 16-bit checksum in one shot
Get the 16-bit checksum in one shot
Get the 16 - bit checksum in one shot
pub fn calc_fletcher16(data: &[u8]) -> u16 {
    let mut checksum = Fletcher16::new();
    checksum.update(data);
    checksum.value()
}
pub fn calc_fletcher16 ( data : & [ u8 ] ) -> u16 { let mut checksum = Fletcher16 :: new ( ) ; checksum . update ( data ) ; checksum . value ( ) }
Get the 16-bit checksum in one shot
Get the 16 - bit checksum in one shot
data
&[u8]
data
&[u8]