#[repr(C)]pub struct ImageBaseRelocation {
pub virtual_address: RVA,
pub size_of_block: u32,
}
Fields§
§virtual_address: RVA
§size_of_block: u32
Implementations§
Source§impl ImageBaseRelocation
impl ImageBaseRelocation
Sourcepub fn calculate_block_size(blocks: usize) -> u32
pub fn calculate_block_size(blocks: usize) -> u32
Calculate the size of a relocation block with blocks
entries.
Sourcepub fn relocations(&self) -> usize
pub fn relocations(&self) -> usize
Get the number of relocation entries in this block.
Trait Implementations§
Source§impl Clone for ImageBaseRelocation
impl Clone for ImageBaseRelocation
Source§fn clone(&self) -> ImageBaseRelocation
fn clone(&self) -> ImageBaseRelocation
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 ImageBaseRelocation
impl Debug for ImageBaseRelocation
Source§impl PartialEq for ImageBaseRelocation
impl PartialEq for ImageBaseRelocation
impl Castable for ImageBaseRelocation
impl Copy for ImageBaseRelocation
impl Eq for ImageBaseRelocation
impl StructuralPartialEq for ImageBaseRelocation
Auto Trait Implementations§
impl Freeze for ImageBaseRelocation
impl RefUnwindSafe for ImageBaseRelocation
impl Send for ImageBaseRelocation
impl Sync for ImageBaseRelocation
impl Unpin for ImageBaseRelocation
impl UnwindSafe for ImageBaseRelocation
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