#[repr(C, packed(1))]pub struct Strat9ModuleHeader {Show 17 fields
pub magic: [u8; 4],
pub version: u16,
pub cpu_arch: u8,
pub flags: u32,
pub code_offset: u64,
pub code_size: u64,
pub data_offset: u64,
pub data_size: u64,
pub bss_size: u64,
pub entry_point: u64,
pub export_table_offset: u64,
pub import_table_offset: u64,
pub relocation_table_offset: u64,
pub key_id: [u8; 8],
pub signature: [u8; 64],
pub cpu_features_required: u64,
pub reserved: [u8; 48],
}Fields§
§magic: [u8; 4]§version: u16§cpu_arch: u8§flags: u32§code_offset: u64§code_size: u64§data_offset: u64§data_size: u64§bss_size: u64§entry_point: u64§export_table_offset: u64§import_table_offset: u64§relocation_table_offset: u64§key_id: [u8; 8]§signature: [u8; 64]§cpu_features_required: u64CPU features required by this module (CpuFeatures bitflags). Header v2+.
reserved: [u8; 48]Trait Implementations§
Source§impl Clone for Strat9ModuleHeader
impl Clone for Strat9ModuleHeader
Source§fn clone(&self) -> Strat9ModuleHeader
fn clone(&self) -> Strat9ModuleHeader
Returns a duplicate 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 moreSource§impl Debug for Strat9ModuleHeader
impl Debug for Strat9ModuleHeader
impl Copy for Strat9ModuleHeader
Auto Trait Implementations§
impl Freeze for Strat9ModuleHeader
impl RefUnwindSafe for Strat9ModuleHeader
impl Send for Strat9ModuleHeader
impl Sync for Strat9ModuleHeader
impl Unpin for Strat9ModuleHeader
impl UnsafeUnpin for Strat9ModuleHeader
impl UnwindSafe for Strat9ModuleHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more