pub trait Relocate<T: ReaderOffset = usize> {
// Required methods
fn relocate_address(&self, offset: T, value: u64) -> Result<u64>;
fn relocate_offset(&self, offset: T, value: T) -> Result<T>;
}
Expand description
Trait for relocating addresses and offsets while reading a section.
Required Methods§
sourcefn relocate_address(&self, offset: T, value: u64) -> Result<u64>
fn relocate_address(&self, offset: T, value: u64) -> Result<u64>
Relocate an address which was read from the given section offset.
sourcefn relocate_offset(&self, offset: T, value: T) -> Result<T>
fn relocate_offset(&self, offset: T, value: T) -> Result<T>
Relocate a value which was read from the given section offset.