pub struct PeFile<'data, Pe, R = &'data [u8]> where
    Pe: ImageNtHeaders,
    R: ReadRef<'data>, 
{ /* private fields */ }
Expand description

A PE object file.

Implementations

Parse the raw PE file data.

Return the DOS header of this file

Return the NT Headers of this file

Returns the section table of this binary.

Returns the data directory at the given index.

Returns this binary data.

Trait Implementations

Formats the value using the given formatter. Read more

A segment in the object file.

An iterator over the segments in the object file.

A section in the object file.

An iterator over the sections in the object file.

A COMDAT section group in the object file.

An iterator over the COMDAT section groups in the object file.

A symbol in the object file.

An iterator over symbols in the object file.

A symbol table in the object file.

An iterator over dynamic relocations in the file. Read more

Get the architecture type of the file.

Return true if the file is little endian, false if it is big endian.

Return true if the file can contain 64-bit addresses.

Get an iterator over the segments in the file.

Get the section named section_name, if such a section exists. Read more

Get the section at the given index. Read more

Get an iterator over the sections in the file.

Get an iterator over the COMDAT section groups in the file.

Get the debugging symbol at the given index. Read more

Get an iterator over the debugging symbols in the file. Read more

Get the symbol table, if any.

Get an iterator over the dynamic linking symbols in the file. Read more

Get the dynamic linking symbol table, if any. Read more

Get the dynamic relocations for this file. Read more

Get the imported symbols.

Get the exported symbols.

The filename and GUID from the PE CodeView section

Return true if the file contains debug information sections, false if not.

Get the base address used for relative virtual addresses. Read more

Get the virtual address of the entry point of the binary

File flags that are specific to each file format.

Get the endianness of the file.

Construct a map from addresses to symbol names. Read more

Construct a map from addresses to symbol names and object file names. Read more

The UUID from a Mach-O LC_UUID load command.

The build ID from an ELF NT_GNU_BUILD_ID note.

The filename and CRC from a .gnu_debuglink section.

The filename and build ID from a .gnu_debugaltlink section.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.