Trait ext4_view::Ext4Read

source ·
pub trait Ext4Read {
    // Required method
    fn read(
        &mut self,
        start_byte: u64,
        dst: &mut [u8],
    ) -> Result<(), Box<dyn IoError>>;
}
Expand description

Interface used by Ext4 to read the filesystem data from a storage file or device.

Required Methods§

source

fn read( &mut self, start_byte: u64, dst: &mut [u8], ) -> Result<(), Box<dyn IoError>>

Read bytes into dst, starting at start_byte.

Exactly dst.len() bytes will be read; an error will be returned if there is not enough data to fill dst, or if the data cannot be read for any reason.

Implementations on Foreign Types§

source§

impl Ext4Read for Vec<u8>

source§

fn read( &mut self, start_byte: u64, dst: &mut [u8], ) -> Result<(), Box<dyn IoError>>

source§

impl Ext4Read for File

Available on crate feature std only.
source§

fn read( &mut self, start_byte: u64, dst: &mut [u8], ) -> Result<(), Box<dyn IoError>>

Implementors§