Struct lief::pe::relocation::Relocation
pub struct Relocation<'a> { /* private fields */ }
Expand description
Class which represents the Base Relocation Block
We usually find this structure in the .reloc
section
Implementations§
§impl Relocation<'_>
impl Relocation<'_>
pub fn virtual_address(&self) -> u32
pub fn virtual_address(&self) -> u32
The RVA for which the offset of the relocation entries is added
pub fn block_size(&self) -> u32
pub fn block_size(&self) -> u32
The total number of bytes in the base relocation block.
block_size = sizeof(BaseRelocationBlock) + nb_of_relocs * sizeof(uint16_t = RelocationEntry)
pub fn entries(&self) -> RelocationEntries<'_> ⓘ
pub fn entries(&self) -> RelocationEntries<'_> ⓘ
Iterator over the Relocation Entry
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Relocation<'a>
impl<'a> !Send for Relocation<'a>
impl<'a> !Sync for Relocation<'a>
impl<'a> Unpin for Relocation<'a>
impl<'a> UnwindSafe for Relocation<'a>
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