Skip to main content

read_range

Function read_range 

Source
pub fn read_range(
    dev: &dyn BlockDevice,
    inode: &Inode,
    inode_raw: &[u8],
    inode_size: u16,
    block_size: u32,
    offset: u64,
    dst: &mut [u8],
) -> Result<usize>
Expand description

Read a range from an inline-data file. Returns the bytes copied into dst, or Ok(0) if offset >= size.