Function read_bytes_offset

Source
pub fn read_bytes_offset(
    path: &str,
    from: u64,
    to: u64,
) -> Result<Vec<u8>, FileError>
Expand description

It never reads more than to - from bytes. If it fails to read from from, that’s an error. If it fails to read to to, that’s not an error.