Enum xmas_elf::sections::SectionHeader
source · pub enum SectionHeader<'a> {
Sh32(&'a SectionHeader_<P32>),
Sh64(&'a SectionHeader_<P64>),
}Variants§
Sh32(&'a SectionHeader_<P32>)
Sh64(&'a SectionHeader_<P64>)
Implementations§
source§impl<'a> SectionHeader<'a>
impl<'a> SectionHeader<'a>
pub fn get_name(&self, elf_file: &ElfFile<'a>) -> Result<&'a str, &'static str>
pub fn get_type(&self) -> Result<ShType, &'static str>
pub fn get_data(
&self,
elf_file: &ElfFile<'a>
) -> Result<SectionData<'a>, &'static str>
pub fn raw_data(&self, elf_file: &ElfFile<'a>) -> &'a [u8]
pub fn flags(&self) -> u64
pub fn name(&self) -> u32
pub fn address(&self) -> u64
pub fn offset(&self) -> u64
pub fn size(&self) -> u64
pub fn type_(&self) -> ShType_
pub fn link(&self) -> u32
pub fn info(&self) -> u32
pub fn entry_size(&self) -> u32
pub fn align(&self) -> u64
Trait Implementations§
source§impl<'a> Clone for SectionHeader<'a>
impl<'a> Clone for SectionHeader<'a>
source§fn clone(&self) -> SectionHeader<'a>
fn clone(&self) -> SectionHeader<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more