pub struct File {
pub ehdr: FileHeader,
pub phdrs: Vec<ProgramHeader>,
pub sections: SectionTable,
}Fields
ehdr: FileHeaderphdrs: Vec<ProgramHeader>sections: SectionTableImplementations
sourceimpl File
impl File
pub fn open_stream<T: Read + Seek>(io_file: &mut T) -> Result<File, ParseError>
sourcepub fn section_strtab<'data>(
&'data self
) -> Result<StringTable<'data>, ParseError>
pub fn section_strtab<'data>(
&'data self
) -> Result<StringTable<'data>, ParseError>
Get the string table for the section headers
sourcepub fn symbol_table<'data>(
&'data self
) -> Result<Option<(SymbolTable<'data>, StringTable<'data>)>, ParseError>
pub fn symbol_table<'data>(
&'data self
) -> Result<Option<(SymbolTable<'data>, StringTable<'data>)>, ParseError>
Get the symbol table (section of type SHT_SYMTAB) and its associated string table.
The GABI specifies that ELF object files may have zero or one sections of type SHT_SYMTAB.
sourcepub fn dynamic_symbol_table<'data>(
&'data self
) -> Result<Option<(SymbolTable<'data>, StringTable<'data>)>, ParseError>
pub fn dynamic_symbol_table<'data>(
&'data self
) -> Result<Option<(SymbolTable<'data>, StringTable<'data>)>, ParseError>
Get the dynamic symbol table (section of type SHT_DYNSYM) and its associated string table.
The GABI specifies that ELF object files may have zero or one sections of type SHT_DYNSYM.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more