Struct object::read::pe::PeFile   [−][src]
A PE object file.
Implementations
impl<'data, Pe: ImageNtHeaders> PeFile<'data, Pe>[src]
pub fn optional_header_magic(data: &'data [u8]) -> Result<u16>[src]
Find the optional header and read the optional_header.magic.
pub fn parse(data: &'data [u8]) -> Result<Self>[src]
Parse the raw PE file data.
Trait Implementations
impl<'data, Pe: Debug + ImageNtHeaders> Debug for PeFile<'data, Pe>[src]
impl<'data, 'file, Pe> Object<'data, 'file> for PeFile<'data, Pe> where
    'data: 'file,
    Pe: ImageNtHeaders, [src]
'data: 'file,
Pe: ImageNtHeaders,
type Segment = PeSegment<'data, 'file, Pe>
A segment in the object file.
type SegmentIterator = PeSegmentIterator<'data, 'file, Pe>
An iterator over the segments in the object file.
type Section = PeSection<'data, 'file, Pe>
A section in the object file.
type SectionIterator = PeSectionIterator<'data, 'file, Pe>
An iterator over the sections in the object file.
type Comdat = PeComdat<'data, 'file, Pe>
A COMDAT section group in the object file.
type ComdatIterator = PeComdatIterator<'data, 'file, Pe>
An iterator over the COMDAT section groups in the object file.
type Symbol = CoffSymbol<'data, 'file>
A symbol in the object file.
type SymbolIterator = CoffSymbolIterator<'data, 'file>
An iterator over symbols in the object file.
type SymbolTable = CoffSymbolTable<'data, 'file>
A symbol table in the object file.
type DynamicRelocationIterator = NoDynamicRelocationIterator
An iterator over dynamic relocations in the file. Read more
fn architecture(&self) -> Architecture[src]
fn is_little_endian(&self) -> bool[src]
fn is_64(&self) -> bool[src]
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>;[src]
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 section_by_name(
    &'file self, 
    section_name: &str
) -> Option<PeSection<'data, 'file, Pe>>[src]
&'file self,
section_name: &str
) -> Option<PeSection<'data, 'file, Pe>>
fn section_by_index(
    &'file self, 
    index: SectionIndex
) -> Result<PeSection<'data, 'file, Pe>>[src]
&'file self,
index: SectionIndex
) -> Result<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>;[src]
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 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>;[src]
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 symbol_by_index(
    &'file self, 
    index: SymbolIndex
) -> Result<CoffSymbol<'data, 'file>>[src]
&'file self,
index: SymbolIndex
) -> Result<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>;[src]
Notable traits for CoffSymbolIterator<'data, 'file>
impl<'data, 'file> Iterator for CoffSymbolIterator<'data, 'file>    type Item = CoffSymbol<'data, 'file>;fn symbol_table(&'file self) -> Option<CoffSymbolTable<'data, 'file>>[src]
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>;[src]
Notable traits for CoffSymbolIterator<'data, 'file>
impl<'data, 'file> Iterator for CoffSymbolIterator<'data, 'file>    type Item = CoffSymbol<'data, 'file>;fn dynamic_symbol_table(&'file self) -> Option<CoffSymbolTable<'data, 'file>>[src]
fn dynamic_relocations(&'file self) -> Option<NoDynamicRelocationIterator>[src]
fn imports(&self) -> Result<Vec<Import<'data>>>[src]
fn exports(&self) -> Result<Vec<Export<'data>>>[src]
fn has_debug_symbols(&self) -> bool[src]
fn entry(&self) -> u64[src]
fn flags(&self) -> FileFlags[src]
fn endianness(&self) -> Endianness[src]
fn symbol_map(&'file self) -> SymbolMap<SymbolMapName<'data>>[src]
fn object_map(&'file self) -> ObjectMap<'data>[src]
fn mach_uuid(&self) -> Result<Option<[u8; 16]>>[src]
fn build_id(&self) -> Result<Option<&'data [u8]>>[src]
fn gnu_debuglink(&self) -> Result<Option<(&'data [u8], u32)>>[src]
Auto Trait Implementations
impl<'data, Pe> Send for PeFile<'data, Pe> where
    Pe: Sync, 
Pe: Sync,
impl<'data, Pe> Sync for PeFile<'data, Pe> where
    Pe: Sync, 
Pe: Sync,
impl<'data, Pe> Unpin for PeFile<'data, Pe>
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,