#[repr(C)]pub struct ImageImportDescriptor {
pub original_first_thunk: RVA,
pub time_date_stamp: u32,
pub forwarder_chain: u32,
pub name: RVA,
pub first_thunk: RVA,
}
Fields§
§original_first_thunk: RVA
§time_date_stamp: u32
§forwarder_chain: u32
§name: RVA
§first_thunk: RVA
Implementations§
Source§impl ImageImportDescriptor
impl ImageImportDescriptor
Sourcepub fn get_original_first_thunk<'data, P: PE>(
&self,
pe: &'data P,
) -> Result<Vec<Thunk<'data>>, Error>
pub fn get_original_first_thunk<'data, P: PE>( &self, pe: &'data P, ) -> Result<Vec<Thunk<'data>>, Error>
Get the thunk array pointed to by the original_first_thunk
field.
Sourcepub fn get_mut_original_first_thunk<'data, P: PE>(
&self,
pe: &'data mut P,
) -> Result<Vec<ThunkMut<'data>>, Error>
pub fn get_mut_original_first_thunk<'data, P: PE>( &self, pe: &'data mut P, ) -> Result<Vec<ThunkMut<'data>>, Error>
Get the mutable thunk array pointed to by the original_first_thunk
field.
Sourcepub fn get_name<'data, P: PE>(
&self,
pe: &'data P,
) -> Result<&'data [CChar], Error>
pub fn get_name<'data, P: PE>( &self, pe: &'data P, ) -> Result<&'data [CChar], Error>
Get the name of the module represented by this import descriptor entry.
Sourcepub fn get_mut_name<'data, P: PE>(
&self,
pe: &'data mut P,
) -> Result<&'data mut [CChar], Error>
pub fn get_mut_name<'data, P: PE>( &self, pe: &'data mut P, ) -> Result<&'data mut [CChar], Error>
Get the mutable name of the module represented by this import descriptor entry.
Sourcepub fn get_first_thunk<'data, P: PE>(
&self,
pe: &'data P,
) -> Result<Vec<Thunk<'data>>, Error>
pub fn get_first_thunk<'data, P: PE>( &self, pe: &'data P, ) -> Result<Vec<Thunk<'data>>, Error>
Get the first thunk array.
This array typically represents where in memory imports get resolved to.
Sourcepub fn get_mut_first_thunk<'data, P: PE>(
&self,
pe: &'data mut P,
) -> Result<Vec<ThunkMut<'data>>, Error>
pub fn get_mut_first_thunk<'data, P: PE>( &self, pe: &'data mut P, ) -> Result<Vec<ThunkMut<'data>>, Error>
Get the mutable first thunk array.
Sourcepub fn get_lookup_thunks<'data, P: PE>(
&self,
pe: &'data P,
) -> Result<Vec<Thunk<'data>>, Error>
pub fn get_lookup_thunks<'data, P: PE>( &self, pe: &'data P, ) -> Result<Vec<Thunk<'data>>, Error>
Get the thunk array that represents the imports, also known as the “import lookup table.”
This thunk array can either come from the original_first_thunk
value or the first_thunk
value.
Sourcepub fn get_imports<'data, P: PE>(
&self,
pe: &'data P,
) -> Result<Vec<ImportData<'data>>, Error>
pub fn get_imports<'data, P: PE>( &self, pe: &'data P, ) -> Result<Vec<ImportData<'data>>, Error>
Get the imports represented by this import descriptor.
This resolves the import table and returns a vector of ImportData
objects.
Trait Implementations§
Source§impl Clone for ImageImportDescriptor
impl Clone for ImageImportDescriptor
Source§fn clone(&self) -> ImageImportDescriptor
fn clone(&self) -> ImageImportDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ImageImportDescriptor
impl Debug for ImageImportDescriptor
Source§impl PartialEq for ImageImportDescriptor
impl PartialEq for ImageImportDescriptor
impl Castable for ImageImportDescriptor
impl Copy for ImageImportDescriptor
impl Eq for ImageImportDescriptor
impl StructuralPartialEq for ImageImportDescriptor
Auto Trait Implementations§
impl Freeze for ImageImportDescriptor
impl RefUnwindSafe for ImageImportDescriptor
impl Send for ImageImportDescriptor
impl Sync for ImageImportDescriptor
impl Unpin for ImageImportDescriptor
impl UnwindSafe for ImageImportDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more