Trait bpx::section::SectionData[][src]

pub trait SectionData: Read + Write + Seek {
    fn load_in_memory(&mut self) -> Result<Vec<u8>>;
fn size(&self) -> usize; }
Expand description

Opaque type intended to manipulate section data in the form of standard IO operations

Required methods

fn load_in_memory(&mut self) -> Result<Vec<u8>>[src]

Loads this section into memory

Returns

  • a new Vec of u8 binary data
  • an Error if the section could not be loaded

fn size(&self) -> usize[src]

Gets the current size of this section

Returns

  • the size in bytes of the section so far

Implementors