#[repr(C, packed(1))]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,
}Expand description
Section header (40 bytes)
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_reloc_section(&self) -> bool
pub fn is_reloc_section(&self) -> bool
Check if this is the .reloc section
Sourcepub fn is_text_section(&self) -> bool
pub fn is_text_section(&self) -> bool
Check if this is the .text section (code)
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