Module exe::types

source · []
Expand description

This module contains Rust types to help with the parsing of PE files.

Structs

Represents a C-style character unit. Basically a wrapper for u8.

Special value used to calculate a variety of fields in the resource directory taking up a single u32 value.

Represents a flattened node of data in a given resource tree.

Represents the import directory in the PE file.

Represents a mutable import directory in the PE file.

Represents a file offset in the image.

Represents a relative virtual address (i.e., RVA). This address typically points to data in memory versus data on disk.

Represents a unit of a relocation, which contains a type and an offset in a u16 value.

Represents the relocation directory.

Represents a mutable relocation directory.

Represents a parsed relocation entry.

Represents a mutable parsed relocation entry.

Represents a resource directory, containing flattened resources and the root node of the resource tree.

Represents a mutable resource directory, containing flattened resources and the root node of the resource tree.

Represents a directory node in the greater resource directory.

Represents a mutable directory node in the greater resource directory.

A u32 wrapper representing offsets into a resource directory.

Represents a 32-bit thunk entry.

Represents a 64-bit thunk entry.

Represents a 32-bit virtual address (i.e., VA).

Represents a 64-bit virtual address (i.e., VA).

A series of bitflags representing the file flags for the VS_FIXEDFILEINFO structure.

Represents a VS_FIXEDFILEINFO structure.

Represents a String structure.

Represents a StringFileInfo structure.

Represents a StringTable structure.

Represents a Var structure.

Represents a VarFileInfo structure.

Represents a VS_VERSIONINFO structure.

Represents a DWORD in the VSVar structure which contains a language ID and a language codepage.

Represents a UTF16 character unit. Basically a wrapper for u16.

Enums

Represents the architecture of the PE image.

An enum representing resolved import data from thunk data.

Represents either a 32-bit or 64-bit NT header.

Represents a mutable 32-bit or 64-bit NT header.

An enum representing the resulting values of a relocation.

Represents the data contained in the resource directory.

Represents the ID value of a given resource directory entry.

Represents a variety of default categories for categorizing resource data.

Represents either a 32-bit or a 64-bit TLS directory.

Represents a mutable 32-bit or a 64-bit TLS directory.

Abstractly represents a thunk object.

An enum representing thunk data for imports and exports.

Abstractly represents a mutable thunk object.

Represents either a 32-bit or a 64-bit virtual address.

An enum representing the OS flags for the VS_FIXEDFILEINFO structure.

An enum representing the file subtype for drivers in the VS_FIXEDFILEINFO structure.

An enum representing the file subtype for fonts in the VS_FIXEDFILEINFO structure.

An enum representing the file type for the VS_FIXEDFILEINFO structure.

Traits

Represents an object which could be considered an address in a PE file.

Syntactic sugar to get functionality out of C-char referenced slices.

Functions to help with thunks in import/export data.

Syntactic sugar for dealing with UTF16 referenced slices.

Type Definitions