pub struct PeFile<'data, Pe: ImageNtHeaders> { /* private fields */ }
Expand description
A PE object file.
Implementations
sourceimpl<'data, Pe: ImageNtHeaders> PeFile<'data, Pe>
impl<'data, Pe: ImageNtHeaders> PeFile<'data, Pe>
Trait Implementations
sourceimpl<'data, Pe: Debug + ImageNtHeaders> Debug for PeFile<'data, Pe>
impl<'data, Pe: Debug + ImageNtHeaders> Debug for PeFile<'data, Pe>
sourceimpl<'data, 'file, Pe> Object<'data, 'file> for PeFile<'data, Pe> where
'data: 'file,
Pe: ImageNtHeaders,
impl<'data, 'file, Pe> Object<'data, 'file> for PeFile<'data, Pe> where
'data: 'file,
Pe: ImageNtHeaders,
type SegmentIterator = PeSegmentIterator<'data, 'file, Pe>
type SegmentIterator = PeSegmentIterator<'data, 'file, Pe>
An iterator over the segments in the object file.
type SectionIterator = PeSectionIterator<'data, 'file, Pe>
type SectionIterator = PeSectionIterator<'data, 'file, Pe>
An iterator over the sections in the object file.
type ComdatIterator = PeComdatIterator<'data, 'file, Pe>
type ComdatIterator = PeComdatIterator<'data, 'file, Pe>
An iterator over the COMDAT section groups in the object file.
type Symbol = CoffSymbol<'data, 'file>
type Symbol = CoffSymbol<'data, 'file>
A symbol in the object file.
type SymbolIterator = CoffSymbolIterator<'data, 'file>
type SymbolIterator = CoffSymbolIterator<'data, 'file>
An iterator over symbols in the object file.
type SymbolTable = CoffSymbolTable<'data, 'file>
type SymbolTable = CoffSymbolTable<'data, 'file>
A symbol table in the object file.
type DynamicRelocationIterator = NoDynamicRelocationIterator
type DynamicRelocationIterator = NoDynamicRelocationIterator
An iterator over dynamic relocations in the file. Read more
sourcefn architecture(&self) -> Architecture
fn architecture(&self) -> Architecture
Get the architecture type of the file.
sourcefn 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.
sourcefn segments(&'file self) -> PeSegmentIterator<'data, 'file, Pe>ⓘNotable traits for PeSegmentIterator<'data, 'file, Pe>impl<'data, 'file, Pe: ImageNtHeaders> Iterator for PeSegmentIterator<'data, 'file, Pe> type Item = PeSegment<'data, 'file, Pe>;
fn segments(&'file self) -> PeSegmentIterator<'data, 'file, Pe>ⓘNotable traits for PeSegmentIterator<'data, 'file, Pe>impl<'data, 'file, Pe: ImageNtHeaders> Iterator for PeSegmentIterator<'data, 'file, Pe> type Item = PeSegment<'data, 'file, Pe>;
Get an iterator over the segments in the file.
sourcefn section_by_name(
&'file self,
section_name: &str
) -> Option<PeSection<'data, 'file, Pe>>
fn section_by_name(
&'file self,
section_name: &str
) -> Option<PeSection<'data, 'file, Pe>>
Get the section named section_name
, if such a section exists. Read more
sourcefn section_by_index(
&'file self,
index: SectionIndex
) -> Result<PeSection<'data, 'file, Pe>>
fn section_by_index(
&'file self,
index: SectionIndex
) -> Result<PeSection<'data, 'file, Pe>>
Get the section at the given index. Read more
sourcefn sections(&'file self) -> PeSectionIterator<'data, 'file, Pe>ⓘNotable traits for PeSectionIterator<'data, 'file, Pe>impl<'data, 'file, Pe: ImageNtHeaders> Iterator for PeSectionIterator<'data, 'file, Pe> type Item = PeSection<'data, 'file, Pe>;
fn sections(&'file self) -> PeSectionIterator<'data, 'file, Pe>ⓘNotable traits for PeSectionIterator<'data, 'file, Pe>impl<'data, 'file, Pe: ImageNtHeaders> Iterator for PeSectionIterator<'data, 'file, Pe> type Item = PeSection<'data, 'file, Pe>;
Get an iterator over the sections in the file.
sourcefn comdats(&'file self) -> PeComdatIterator<'data, 'file, Pe>ⓘNotable traits for PeComdatIterator<'data, 'file, Pe>impl<'data, 'file, Pe: ImageNtHeaders> Iterator for PeComdatIterator<'data, 'file, Pe> type Item = PeComdat<'data, 'file, Pe>;
fn comdats(&'file self) -> PeComdatIterator<'data, 'file, Pe>ⓘNotable traits for PeComdatIterator<'data, 'file, Pe>impl<'data, 'file, Pe: ImageNtHeaders> Iterator for PeComdatIterator<'data, 'file, Pe> type Item = PeComdat<'data, 'file, Pe>;
Get an iterator over the COMDAT section groups in the file.
sourcefn symbol_by_index(
&'file self,
index: SymbolIndex
) -> Result<CoffSymbol<'data, 'file>>
fn symbol_by_index(
&'file self,
index: SymbolIndex
) -> Result<CoffSymbol<'data, 'file>>
Get the debugging symbol at the given index. Read more
sourcefn symbols(&'file self) -> CoffSymbolIterator<'data, 'file>ⓘNotable traits for CoffSymbolIterator<'data, 'file>impl<'data, 'file> Iterator for CoffSymbolIterator<'data, 'file> type Item = CoffSymbol<'data, 'file>;
fn symbols(&'file self) -> CoffSymbolIterator<'data, 'file>ⓘNotable traits for CoffSymbolIterator<'data, 'file>impl<'data, 'file> Iterator for CoffSymbolIterator<'data, 'file> type Item = CoffSymbol<'data, 'file>;
Get an iterator over the debugging symbols in the file. Read more
sourcefn symbol_table(&'file self) -> Option<CoffSymbolTable<'data, 'file>>
fn symbol_table(&'file self) -> Option<CoffSymbolTable<'data, 'file>>
Get the symbol table, if any.
sourcefn dynamic_symbols(&'file self) -> CoffSymbolIterator<'data, 'file>ⓘNotable traits for CoffSymbolIterator<'data, 'file>impl<'data, 'file> Iterator for CoffSymbolIterator<'data, 'file> type Item = CoffSymbol<'data, 'file>;
fn dynamic_symbols(&'file self) -> CoffSymbolIterator<'data, 'file>ⓘNotable traits for CoffSymbolIterator<'data, 'file>impl<'data, 'file> Iterator for CoffSymbolIterator<'data, 'file> type Item = CoffSymbol<'data, 'file>;
Get an iterator over the dynamic linking symbols in the file. Read more
sourcefn dynamic_symbol_table(&'file self) -> Option<CoffSymbolTable<'data, 'file>>
fn dynamic_symbol_table(&'file self) -> Option<CoffSymbolTable<'data, 'file>>
Get the dynamic linking symbol table, if any. Read more
sourcefn dynamic_relocations(&'file self) -> Option<NoDynamicRelocationIterator>
fn dynamic_relocations(&'file self) -> Option<NoDynamicRelocationIterator>
Get the dynamic relocations for this file. Read more
sourcefn has_debug_symbols(&self) -> bool
fn has_debug_symbols(&self) -> bool
Return true if the file contains debug information sections, false if not.
sourcefn endianness(&self) -> Endianness
fn endianness(&self) -> Endianness
Get the endianness of the file.
sourcefn symbol_map(&'file self) -> SymbolMap<SymbolMapName<'data>>
fn symbol_map(&'file self) -> SymbolMap<SymbolMapName<'data>>
Construct a map from addresses to symbol names. Read more
sourcefn object_map(&'file self) -> ObjectMap<'data>
fn object_map(&'file self) -> ObjectMap<'data>
Construct a map from addresses to symbol names and object file names. Read more
Auto Trait Implementations
impl<'data, Pe> RefUnwindSafe for PeFile<'data, Pe> where
Pe: RefUnwindSafe,
impl<'data, Pe> Send for PeFile<'data, Pe> where
Pe: Sync,
impl<'data, Pe> Sync for PeFile<'data, Pe> where
Pe: Sync,
impl<'data, Pe> Unpin for PeFile<'data, Pe>
impl<'data, Pe> UnwindSafe for PeFile<'data, Pe> where
Pe: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more