pub struct Section<'a> { /* private fields */ }
Expand description
Structure wich represents an ELF Section
Implementations§
§impl Section<'_>
impl Section<'_>
pub fn information(&self) -> u64
pub fn information(&self) -> u64
Section information. This meaning of this value depends on the section’s type
pub fn entry_size(&self) -> u64
pub fn entry_size(&self) -> u64
This function returns the size of an element in the case of a section that contains an array.
For instance, the .dynamic
section contains an array of DynamicEntry. As the
size of the raw C structure of this entry is 0x10 (sizeof(Elf64_Dyn)
)
in a ELF64, the entry_size
is set to this value.
pub fn file_offset(&self) -> u64
pub fn file_offset(&self) -> u64
Offset in the file where the content of this section is located
pub fn original_size(&self) -> u64
pub fn original_size(&self) -> u64
Original size of the section (regardless modifications)
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Section<'a>
impl<'a> !Send for Section<'a>
impl<'a> !Sync for Section<'a>
impl<'a> Unpin for Section<'a>
impl<'a> UnwindSafe for Section<'a>
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