Expand description
This module contains Rust types to help with the parsing of PE files.
Structs§
- CChar
- Represents a C-style character unit. Basically a wrapper for
u8. - Flagged
Dword - Special value used to calculate a variety of fields in the resource directory taking up a single
u32value. - Flattened
Resource Data Entry - Represents a flattened node of data in a given resource tree.
- IconDir
- Represents a non-mutable icon file directory.
- Icon
DirEntry - Represents an entry in the directory of an icon file.
- Icon
DirMut - Represents a mutable icon file directory.
- Icon
DirVec - Create an owned
IconDirobject. - Import
Directory - Represents the import directory in the PE file.
- Import
Directory Mut - Represents a mutable import directory in the PE file.
- Offset
- Represents a file offset in the image.
- RVA
- Represents a relative virtual address (i.e., RVA). This address typically points to data in memory versus data on disk.
- Relocation
- Represents a unit of a relocation, which contains a type and an offset in a
u16value. - Relocation
Directory - Represents the relocation directory.
- Relocation
Directory Mut - Represents a mutable relocation directory.
- Relocation
Entry - Represents a parsed relocation entry.
- Relocation
Entry Mut - Represents a mutable parsed relocation entry.
- Resource
Directory - Represents a resource directory, containing flattened resources and the root node of the resource tree.
- Resource
Directory Mut - Represents a mutable resource directory, containing flattened resources and the root node of the resource tree.
- Resource
Node - Represents a directory node in the greater resource directory.
- Resource
Node Mut - Represents a mutable directory node in the greater resource directory.
- Resource
Offset - A
u32wrapper representing offsets into a resource directory. - Thunk32
- Represents a 32-bit thunk entry.
- Thunk64
- Represents a 64-bit thunk entry.
- VA32
- Represents a 32-bit virtual address (i.e., VA).
- VA64
- Represents a 64-bit virtual address (i.e., VA).
- VSFile
Flags - A series of bitflags representing the file flags for the
VS_FIXEDFILEINFOstructure. - VSFixed
File Info - Represents a
VS_FIXEDFILEINFOstructure. - VSHeader
- Represents a header for a VS_VERSION structure.
- VSString
- Represents a
Stringstructure. - VSString
File Info - Represents a
StringFileInfostructure. - VSString
Table - Represents a
StringTablestructure. - VSVar
- Represents a
Varstructure. - VSVar
File Info - Represents a
VarFileInfostructure. - VSVersion
Info - Represents a
VS_VERSIONINFOstructure. - VarDword
- Represents a DWORD in the
VSVarstructure which contains a language ID and a language codepage. - WChar
- Represents a UTF16 character unit. Basically a wrapper for
u16.
Enums§
- Arch
- Represents the architecture of the PE image.
- Import
Data - An enum representing resolved import data from thunk data.
- NTHeaders
- Represents either a 32-bit or 64-bit NT header.
- NTHeaders
Mut - Represents a mutable 32-bit or 64-bit NT header.
- Relocation
Value - An enum representing the resulting values of a relocation.
- Resolved
Directory Data - Represents a
ResourceDirectoryDatathat has been resolved. - Resolved
Directory Data Mut - Represents a
ResourceDirectoryDatathat has been resolved with mutable references. - Resolved
DirectoryID - Represents a
ResourceDirectoryIDthat has been resolved. - Resource
Directory Data - Represents the data contained in the resource directory.
- Resource
DirectoryID - Represents the ID value of a given resource directory entry.
- ResourceID
- Represents a variety of default categories for categorizing resource data.
- TLSDirectory
- Represents either a 32-bit or a 64-bit TLS directory.
- TLSDirectory
Mut - Represents a mutable 32-bit or a 64-bit TLS directory.
- Thunk
- Abstractly represents a thunk object.
- Thunk
Data - An enum representing thunk data for imports and exports.
- Thunk
Mut - Abstractly represents a mutable thunk object.
- VA
- Represents either a 32-bit or a 64-bit virtual address.
- VSFileOS
- An enum representing the OS flags for the
VS_FIXEDFILEINFOstructure. - VSFile
Subtype Drv - An enum representing the file subtype for drivers in the
VS_FIXEDFILEINFOstructure. - VSFile
Subtype Font - An enum representing the file subtype for fonts in the
VS_FIXEDFILEINFOstructure. - VSFile
Type - An enum representing the file type for the
VS_FIXEDFILEINFOstructure.
Traits§
- Address
- Represents an object which could be considered an address in a PE file.
- CChar
String - Syntactic sugar to get functionality out of C-char referenced slices.
- Thunk
Functions - Functions to help with thunks in import/export data.
- WChar
String - Syntactic sugar for dealing with UTF16 referenced slices.