#[repr(C)]pub struct Rela32 { /* private fields */ }
Implementations§
Source§impl Rela32
impl Rela32
pub const SIZE: Elf32Xword = 12u64
pub fn get_sym(&self) -> Elf32Word
pub fn get_type(&self) -> Elf32Word
pub fn get_offset(&self) -> Elf32Addr
pub fn get_info(&self) -> Elf32Word
pub fn get_addend(&self) -> Elf32Sword
pub fn set_addend(&mut self, addend: Elf32Sword)
pub fn set_offset(&mut self, offset: Elf32Addr)
pub fn set_info(&mut self, info: Elf32Word)
Sourcepub fn to_le_bytes(&self) -> Vec<u8> ⓘ
pub fn to_le_bytes(&self) -> Vec<u8> ⓘ
Create Vec
§Examples
use elf_utilities::relocation::Rela32;
let null_rel : Rela32 = Default::default();
assert_eq!([0].repeat(Rela32::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 Rela32
impl<'de> Deserialize<'de> for Rela32
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 Rela32
impl Ord for Rela32
Source§impl PartialOrd for Rela32
impl PartialOrd for Rela32
impl Copy for Rela32
impl Eq for Rela32
impl StructuralPartialEq for Rela32
Auto Trait Implementations§
impl Freeze for Rela32
impl RefUnwindSafe for Rela32
impl Send for Rela32
impl Sync for Rela32
impl Unpin for Rela32
impl UnwindSafe for Rela32
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