Struct elrond::Section
[−]
[src]
pub struct Section {
pub sh_name: Elf_Word,
pub sh_type: SectionType,
pub sh_flags: Elf_VarWord,
pub sh_addr: Elf_Addr,
pub sh_offset: Elf_Off,
pub sh_size: Elf_VarWord,
pub sh_link: Elf_Word,
pub sh_info: Elf_Word,
pub sh_addralign: Elf_VarWord,
pub sh_entsize: Elf_VarWord,
}Fields
sh_name: Elf_Word
sh_type: SectionType
sh_flags: Elf_VarWord
sh_addr: Elf_Addr
sh_offset: Elf_Off
sh_size: Elf_VarWord
sh_link: Elf_Word
sh_info: Elf_Word
sh_addralign: Elf_VarWord
sh_entsize: Elf_VarWord
Methods
impl Section[src]
fn get_flags(&self) -> Vec<SegFlag>
fn read_data<R: Read + Seek>(&self, r: &mut R) -> Result<Vec<u8>>
Return's that data from the File associated with this section
fn borrow_data<'a>(&self, buff: &'a [u8]) -> Option<&'a [u8]>
Return the data as an aliased borrow
None
Return's an Option::None when the buffer is insufficient size
Trait Implementations
impl Clone for Section[src]
fn clone(&self) -> Section
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more