Function zaino_fetch::chain::utils::read_u64

source ยท
pub fn read_u64(
    cursor: &mut Cursor<&[u8]>,
    error_msg: &str,
) -> Result<u64, ParseError>
Expand description

Reads the next 8 bytes from cursor into a u64, returns error message given if eof is reached..