Struct object::read::pe::ImportTable[][src]

pub struct ImportTable<'data> { /* fields omitted */ }
Expand description

Information for parsing a PE import table.

Implementations

Create a new import table parser.

The import descriptors start at import_address. The size declared in the IMAGE_DIRECTORY_ENTRY_IMPORT data directory is ignored by the Windows loader, and so descriptors will be parsed until a null entry.

section_data should be from the section containing import_address, and section_address should be the address of that section. Pointers within the descriptors and thunks may point to anywhere within the section data.

Return an iterator for the import descriptors.

Return a library name given its address.

This address may be from pe::ImageImportDescriptor::name.

Return a list of thunks given its address.

This address may be from pe::ImageImportDescriptor::original_first_thunk or pe::ImageImportDescriptor::first_thunk.

Parse a thunk.

Return the hint and name at the given address.

This address may be from pe::ImageThunkData32 or pe::ImageThunkData64.

The hint is an index into the export name pointer table in the target library.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.