Struct elf_utilities::section::Section64
source · [−]pub struct Section64 {
pub name: String,
pub header: Shdr64,
pub bytes: Option<Vec<u8>>,
pub symbols: Option<Vec<Symbol64>>,
pub rela_symbols: Option<Vec<Rela64>>,
}Fields
name: Stringheader: Shdr64bytes: Option<Vec<u8>>for normal section
symbols: Option<Vec<Symbol64>>for symbol table
rela_symbols: Option<Vec<Rela64>>for rela symbol table
Implementations
sourceimpl Section64
impl Section64
pub fn new(section_name: String, shdr: Shdr64) -> Self
pub fn write_byte_to_index(&mut self, byte: u8, idx: usize)
sourcepub fn to_le_bytes(&self) -> Vec<u8>
pub fn to_le_bytes(&self) -> Vec<u8>
create binary without header
pub fn new_null_section() -> Self
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Section64
impl<'de> Deserialize<'de> for Section64
sourcefn 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
sourceimpl Ord for Section64
impl Ord for Section64
sourceimpl PartialOrd<Section64> for Section64
impl PartialOrd<Section64> for Section64
sourcefn partial_cmp(&self, other: &Section64) -> Option<Ordering>
fn partial_cmp(&self, other: &Section64) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for Section64
impl StructuralEq for Section64
impl StructuralPartialEq for Section64
Auto Trait Implementations
impl RefUnwindSafe for Section64
impl Send for Section64
impl Sync for Section64
impl Unpin for Section64
impl UnwindSafe for Section64
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more