[−][src]Struct object::read::pe::PeFile
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 SymbolIterator = CoffSymbolIterator<'data, 'file>
An iterator over the symbols in the object file.
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>
[src]
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>
[src]
fn symbol_by_index(&self, index: SymbolIndex) -> Result<Symbol<'data>>
[src]
fn symbols(&'file self) -> CoffSymbolIterator<'data, 'file>
[src]
fn dynamic_symbols(&'file self) -> CoffSymbolIterator<'data, 'file>
[src]
fn symbol_map(&self) -> SymbolMap<'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_data(
&'file self,
symbol: &Symbol<'data>
) -> Result<Option<&'data [u8]>>
[src]
&'file self,
symbol: &Symbol<'data>
) -> Result<Option<&'data [u8]>>
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,
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.
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>,