pub fn read_le(buf: &[u8], pos: usize, n: usize) -> Result<u64, ProtoError>Expand description
Read a little-endian unsigned integer of N bytes starting at buf[pos].
Works for any N ≤ 8; the result is zero-extended to u64 and the caller casts/truncates to the desired width.