Struct elrond::Elf
[−]
[src]
pub struct Elf {
pub header: ElfHeader,
pub sections: Vec<Section>,
pub progheader: Vec<ProgramHeaderTable>,
}Holds the ELF Data
Fields
header: ElfHeader
sections: Vec<Section>
progheader: Vec<ProgramHeaderTable>
Methods
impl Elf[src]
fn parse(x: &[u8]) -> Option<Elf>
Parse a buffer.
This function will extract the Section and ProgramHeaderTable information.
It does not try to extract their full binary/data information. You can all the
individual Section and/or ProgramHeaderTable for that. They expose the
read_data and borrow_data functions which can fetch the contents the
header is referencing.