pub struct DataDirectories<'data> { /* private fields */ }
Expand description

The table of data directories in a PE file.

Implementations

Parse the data directory table.

data must be the remaining optional data following the optional header. number must be from the number_of_rva_and_sizes field of the optional header.

The number of data directories.

Iterator over the data directories.

Iterator which gives the directories as well as their index (one of the IMAGE_DIRECTORY_ENTRY_* constants).

Returns the data directory at the given index.

Index should be one of the IMAGE_DIRECTORY_ENTRY_* constants.

Returns None if the index is larger than the table size, or if the entry at the index has a zero virtual address.

Returns the unparsed export directory.

data must be the entire file data.

Returns the partially parsed export directory.

data must be the entire file data.

Returns the partially parsed import directory.

data must be the entire file data.

Returns the blocks in the base relocation directory.

data must be the entire file data.

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)

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.