Struct elrond::ProgramHeaderTable
[−]
[src]
pub struct ProgramHeaderTable {
pub kind: Elf_Word,
pub offset: Elf_Off,
pub vaddr: Elf_Addr,
pub paddr: Elf_Addr,
pub flags: Elf_Word,
pub memsize: Elf_VarWord,
pub align: Elf_VarWord,
pub filesz: Elf_VarWord,
}Fields
kind: Elf_Word
offset: Elf_Off
vaddr: Elf_Addr
paddr: Elf_Addr
flags: Elf_Word
memsize: Elf_VarWord
align: Elf_VarWord
filesz: Elf_VarWord
Methods
impl ProgramHeaderTable[src]
fn ram_flags(&self) -> Vec<RamFlags>
Read RAM flags
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 ProgramHeaderTable[src]
fn clone(&self) -> ProgramHeaderTable
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
impl Copy for ProgramHeaderTable[src]
impl Debug for ProgramHeaderTable[src]
impl PartialEq for ProgramHeaderTable[src]
fn eq(&self, __arg_0: &ProgramHeaderTable) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ProgramHeaderTable) -> bool
This method tests for !=.