Trait gimli::read::relocate::Relocate

source ·
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§

source

fn relocate_address(&self, offset: T, value: u64) -> Result<u64>

Relocate an address which was read from the given section offset.

source

fn relocate_offset(&self, offset: T, value: T) -> Result<T>

Relocate a value which was read from the given section offset.

Implementors§