#[repr(C)]pub struct Rela64 { /* private fields */ }
Implementations§
Source§impl Rela64
impl Rela64
pub const SIZE: Elf64Xword = 24u64
pub fn get_sym(&self) -> Elf64Xword
pub fn get_type(&self) -> Elf64Xword
pub fn get_offset(&self) -> Elf64Addr
pub fn get_info(&self) -> Elf64Xword
pub fn get_addend(&self) -> Elf64Sxword
pub fn set_addend(&mut self, addend: Elf64Sxword)
pub fn set_offset(&mut self, offset: Elf64Addr)
pub fn set_info(&mut self, info: Elf64Xword)
Sourcepub fn to_le_bytes(&self) -> Vec<u8> ⓘ
pub fn to_le_bytes(&self) -> Vec<u8> ⓘ
Create Vec
§Examples
use elf_utilities::relocation::Rela64;
let null_rel : Rela64 = Default::default();
assert_eq!([0].repeat(Rela64::SIZE as usize), null_rel.to_le_bytes());
pub fn deserialize(buf: &[u8], start: usize) -> Result<Self, Box<dyn Error>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rela64
impl<'de> Deserialize<'de> for Rela64
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Rela64
impl Ord for Rela64
Source§impl PartialOrd for Rela64
impl PartialOrd for Rela64
impl Copy for Rela64
impl Eq for Rela64
impl StructuralPartialEq for Rela64
Auto Trait Implementations§
impl Freeze for Rela64
impl RefUnwindSafe for Rela64
impl Send for Rela64
impl Sync for Rela64
impl Unpin for Rela64
impl UnwindSafe for Rela64
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