Function zaino_fetch::chain::utils::read_bytes

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

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