Struct ckb_vm::elf::ProgramHeader
source · pub struct ProgramHeader {
pub p_type: u32,
pub p_flags: u32,
pub p_offset: u64,
pub p_vaddr: u64,
pub p_paddr: u64,
pub p_filesz: u64,
pub p_memsz: u64,
pub p_align: u64,
}
Expand description
Same as goblin::elf::ProgramHeader.
Fields§
§p_type: u32
§p_flags: u32
§p_offset: u64
§p_vaddr: u64
§p_paddr: u64
§p_filesz: u64
§p_memsz: u64
§p_align: u64
Implementations§
source§impl ProgramHeader
impl ProgramHeader
pub fn from_v0(header: &ProgramHeader) -> Self
pub fn from_v1(header: &ProgramHeader) -> Self
Auto Trait Implementations§
impl Freeze for ProgramHeader
impl RefUnwindSafe for ProgramHeader
impl Send for ProgramHeader
impl Sync for ProgramHeader
impl Unpin for ProgramHeader
impl UnwindSafe for ProgramHeader
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