pub fn decode_with_length(length: u8, bytes: &[u8]) -> Result<u64, Error>