pub struct File<'data> { /* private fields */ }
Expand description
An object file.
Implementations§
Trait Implementations§
source§impl<'data, 'file> Object<'data, 'file> for File<'data>where
'data: 'file,
impl<'data, 'file> Object<'data, 'file> for File<'data>where
'data: 'file,
§type SegmentIterator = SegmentIterator<'data, 'file>
type SegmentIterator = SegmentIterator<'data, 'file>
An iterator over the segments in the object file.
§type SectionIterator = SectionIterator<'data, 'file>
type SectionIterator = SectionIterator<'data, 'file>
An iterator over the sections in the object file.
§type SymbolIterator = SymbolIterator<'data, 'file>
type SymbolIterator = SymbolIterator<'data, 'file>
An iterator over the symbols in the object file.
source§fn segments(&'file self) -> SegmentIterator<'data, 'file> ⓘ
fn segments(&'file self) -> SegmentIterator<'data, 'file> ⓘ
Get an iterator over the segments in the file.
source§fn section_by_name(
&'file self,
section_name: &str
) -> Option<Section<'data, 'file>>
fn section_by_name(
&'file self,
section_name: &str
) -> Option<Section<'data, 'file>>
Get the section named
section_name
, if such a section exists. Read moresource§fn section_data_by_name(&self, section_name: &str) -> Option<Cow<'data, [u8]>>
fn section_data_by_name(&self, section_name: &str) -> Option<Cow<'data, [u8]>>
Get the contents of the section named
section_name
, if such
a section exists. Read moresource§fn sections(&'file self) -> SectionIterator<'data, 'file> ⓘ
fn sections(&'file self) -> SectionIterator<'data, 'file> ⓘ
Get an iterator over the sections in the file.
source§fn symbol_by_index(&self, index: u64) -> Option<Symbol<'data>>
fn symbol_by_index(&self, index: u64) -> Option<Symbol<'data>>
Get the debugging symbol at the given index. Read more
source§fn symbols(&'file self) -> SymbolIterator<'data, 'file> ⓘ
fn symbols(&'file self) -> SymbolIterator<'data, 'file> ⓘ
Get an iterator over the debugging symbols in the file. Read more
source§fn dynamic_symbols(&'file self) -> SymbolIterator<'data, 'file> ⓘ
fn dynamic_symbols(&'file self) -> SymbolIterator<'data, 'file> ⓘ
Get an iterator over the dynamic linking symbols in the file. Read more
source§fn symbol_map(&self) -> SymbolMap<'data>
fn symbol_map(&self) -> SymbolMap<'data>
Construct a map from addresses to symbols.
source§fn is_little_endian(&self) -> bool
fn is_little_endian(&self) -> bool
Return true if the file is little endian, false if it is big endian.
source§fn has_debug_symbols(&self) -> bool
fn has_debug_symbols(&self) -> bool
Return true if the file contains debug information sections, false if not.