pub fn get_checksum(buf: &[u8], pos: usize) -> Result<u32>