Skip to main content

read_region

Function read_region 

Source
fn read_region(
    file: &mut (impl Read + Seek),
    offset: u64,
    len: Option<usize>,
) -> Result<Option<Vec<u8>>>
Expand description

Reads len bytes at offset; None when the region is implausibly large or runs past the end of the file.