Function etherparse::checksum::u32_16bit_word::add_slice

source ยท
pub fn add_slice(start_sum: u32, slice: &[u8]) -> u32
Expand description

Add the given slice to the checksum. In case the slice has a length that is not multiple of 2 the last byte will be padded with 0.