#[repr(C)]pub struct SectionHeader {
pub name: [u8; 8],
pub virtual_size: u32,
pub virtual_address: u32,
pub size_of_raw_data: u32,
pub pointer_to_raw_data: u32,
pub pointer_to_relocations: u32,
pub pointer_to_linenumbers: u32,
pub number_of_relocations: u16,
pub number_of_linenumbers: u16,
pub characteristics: u32,
}Fields§
§name: [u8; 8]§virtual_size: u32§virtual_address: u32§size_of_raw_data: u32§pointer_to_raw_data: u32§pointer_to_relocations: u32§pointer_to_linenumbers: u32§number_of_relocations: u16§number_of_linenumbers: u16§characteristics: u32Implementations§
Source§impl SectionHeader
impl SectionHeader
Sourcepub fn is_executable(&self) -> bool
pub fn is_executable(&self) -> bool
check if section is executable
Sourcepub fn is_readable(&self) -> bool
pub fn is_readable(&self) -> bool
check if section is readable
Sourcepub fn is_writable(&self) -> bool
pub fn is_writable(&self) -> bool
check if section is writable
Sourcepub fn contains_code(&self) -> bool
pub fn contains_code(&self) -> bool
check if section contains code
Sourcepub fn contains_initialized_data(&self) -> bool
pub fn contains_initialized_data(&self) -> bool
check if section contains initialized data
Sourcepub fn contains_uninitialized_data(&self) -> bool
pub fn contains_uninitialized_data(&self) -> bool
check if section contains uninitialized data
Sourcepub fn is_discardable(&self) -> bool
pub fn is_discardable(&self) -> bool
check if section is discardable
Sourcepub fn to_protection(&self) -> u32
pub fn to_protection(&self) -> u32
convert section characteristics to memory protection flags
Trait Implementations§
Source§impl Clone for SectionHeader
impl Clone for SectionHeader
Source§fn clone(&self) -> SectionHeader
fn clone(&self) -> SectionHeader
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 SectionHeader
impl Debug for SectionHeader
impl Copy for SectionHeader
Auto Trait Implementations§
impl Freeze for SectionHeader
impl RefUnwindSafe for SectionHeader
impl Send for SectionHeader
impl Sync for SectionHeader
impl Unpin for SectionHeader
impl UnwindSafe for SectionHeader
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