Struct elfkit::relocation::Relocation [−][src]
pub struct Relocation { pub addr: u64, pub sym: u32, pub rtype: RelocationType, pub addend: i64, }
Fields
addr: u64
sym: u32
rtype: RelocationType
addend: i64
Methods
impl Relocation
[src]
impl Relocation
pub fn entsize(eh: &Header) -> usize
[src]
pub fn entsize(eh: &Header) -> usize
pub fn from_reader<R>(
io: R,
_: Option<&SectionContent>,
eh: &Header
) -> Result<SectionContent, Error> where
R: Read,
[src]
pub fn from_reader<R>(
io: R,
_: Option<&SectionContent>,
eh: &Header
) -> Result<SectionContent, Error> where
R: Read,
pub fn to_writer<W>(&self, io: W, eh: &Header) -> Result<usize, Error> where
W: Write,
[src]
pub fn to_writer<W>(&self, io: W, eh: &Header) -> Result<usize, Error> where
W: Write,
Trait Implementations
impl Default for Relocation
[src]
impl Default for Relocation
fn default() -> Relocation
[src]
fn default() -> Relocation
Returns the "default value" for a type. Read more
impl Debug for Relocation
[src]
impl Debug for Relocation
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Relocation
[src]
impl Clone for Relocation
fn clone(&self) -> Relocation
[src]
fn clone(&self) -> Relocation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for Relocation
impl Send for Relocation
impl Sync for Relocation
impl Sync for Relocation