Trait BlockRead

Source
pub trait BlockRead {
    // Required method
    fn read<R: ElfRead>(
        reader: &mut R,
        class: Class,
        byte_order: ByteOrder,
        len: u64,
    ) -> Result<Self, Error>
       where Self: Sized;
}
Expand description

Read a block of data from a file.

Usually a block occupies the whole section or segment.

Required Methods§

Source

fn read<R: ElfRead>( reader: &mut R, class: Class, byte_order: ByteOrder, len: u64, ) -> Result<Self, Error>
where Self: Sized,

Read the table from the reader.

Implementations on Foreign Types§

Source§

impl BlockRead for Vec<u8>

Source§

fn read<R: ElfRead>( reader: &mut R, _class: Class, _byte_order: ByteOrder, len: u64, ) -> Result<Self, Error>

Implementors§