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.
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.
pub fn export_directory<R: ReadRef<'data>>(
&self,
data: R,
sections: &SectionTable<'data>
) -> Result<Option<&'data ImageExportDirectory>>
pub fn export_directory<R: ReadRef<'data>>(
&self,
data: R,
sections: &SectionTable<'data>
) -> Result<Option<&'data ImageExportDirectory>>
Returns the unparsed export directory.
data
must be the entire file data.
pub fn export_table<R: ReadRef<'data>>(
&self,
data: R,
sections: &SectionTable<'data>
) -> Result<Option<ExportTable<'data>>>
pub fn export_table<R: ReadRef<'data>>(
&self,
data: R,
sections: &SectionTable<'data>
) -> Result<Option<ExportTable<'data>>>
Returns the partially parsed export directory.
data
must be the entire file data.
pub fn import_table<R: ReadRef<'data>>(
&self,
data: R,
sections: &SectionTable<'data>
) -> Result<Option<ImportTable<'data>>>
pub fn import_table<R: ReadRef<'data>>(
&self,
data: R,
sections: &SectionTable<'data>
) -> Result<Option<ImportTable<'data>>>
Returns the partially parsed import directory.
data
must be the entire file data.
pub fn relocation_blocks<R: ReadRef<'data>>(
&self,
data: R,
sections: &SectionTable<'data>
) -> Result<Option<RelocationBlockIterator<'data>>>
pub fn relocation_blocks<R: ReadRef<'data>>(
&self,
data: R,
sections: &SectionTable<'data>
) -> Result<Option<RelocationBlockIterator<'data>>>
Returns the blocks in the base relocation directory.
data
must be the entire file data.
Trait Implementations
Auto Trait Implementations
impl<'data> RefUnwindSafe for DataDirectories<'data>
impl<'data> Send for DataDirectories<'data>
impl<'data> Sync for DataDirectories<'data>
impl<'data> Unpin for DataDirectories<'data>
impl<'data> UnwindSafe for DataDirectories<'data>
Blanket Implementations
Mutably borrows from an owned value. Read more