Module types

Module types 

Source
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.
FlaggedDword
Special value used to calculate a variety of fields in the resource directory taking up a single u32 value.
FlattenedResourceDataEntry
Represents a flattened node of data in a given resource tree.
IconDir
Represents a non-mutable icon file directory.
IconDirEntry
Represents an entry in the directory of an icon file.
IconDirMut
Represents a mutable icon file directory.
IconDirVec
Create an owned IconDir object.
ImportDirectory
Represents the import directory in the PE file.
ImportDirectoryMut
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 u16 value.
RelocationDirectory
Represents the relocation directory.
RelocationDirectoryMut
Represents a mutable relocation directory.
RelocationEntry
Represents a parsed relocation entry.
RelocationEntryMut
Represents a mutable parsed relocation entry.
ResourceDirectory
Represents a resource directory, containing flattened resources and the root node of the resource tree.
ResourceDirectoryMut
Represents a mutable resource directory, containing flattened resources and the root node of the resource tree.
ResourceNode
Represents a directory node in the greater resource directory.
ResourceNodeMut
Represents a mutable directory node in the greater resource directory.
ResourceOffset
A u32 wrapper 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).
VSFileFlags
A series of bitflags representing the file flags for the VS_FIXEDFILEINFO structure.
VSFixedFileInfo
Represents a VS_FIXEDFILEINFO structure.
VSHeader
Represents a header for a VS_VERSION structure.
VSString
Represents a String structure.
VSStringFileInfo
Represents a StringFileInfo structure.
VSStringTable
Represents a StringTable structure.
VSVar
Represents a Var structure.
VSVarFileInfo
Represents a VarFileInfo structure.
VSVersionInfo
Represents a VS_VERSIONINFO structure.
VarDword
Represents a DWORD in the VSVar structure 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.
ImportData
An enum representing resolved import data from thunk data.
NTHeaders
Represents either a 32-bit or 64-bit NT header.
NTHeadersMut
Represents a mutable 32-bit or 64-bit NT header.
RelocationValue
An enum representing the resulting values of a relocation.
ResolvedDirectoryData
Represents a ResourceDirectoryData that has been resolved.
ResolvedDirectoryDataMut
Represents a ResourceDirectoryData that has been resolved with mutable references.
ResolvedDirectoryID
Represents a ResourceDirectoryID that has been resolved.
ResourceDirectoryData
Represents the data contained in the resource directory.
ResourceDirectoryID
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.
TLSDirectoryMut
Represents a mutable 32-bit or a 64-bit TLS directory.
Thunk
Abstractly represents a thunk object.
ThunkData
An enum representing thunk data for imports and exports.
ThunkMut
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_FIXEDFILEINFO structure.
VSFileSubtypeDrv
An enum representing the file subtype for drivers in the VS_FIXEDFILEINFO structure.
VSFileSubtypeFont
An enum representing the file subtype for fonts in the VS_FIXEDFILEINFO structure.
VSFileType
An enum representing the file type for the VS_FIXEDFILEINFO structure.

Traits§

Address
Represents an object which could be considered an address in a PE file.
CCharString
Syntactic sugar to get functionality out of C-char referenced slices.
ThunkFunctions
Functions to help with thunks in import/export data.
WCharString
Syntactic sugar for dealing with UTF16 referenced slices.

Type Aliases§

DebugDirectory
ExportDirectory