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_line_numbers: u32,
pub number_of_relocations: u16,
pub number_of_line_numbers: u16,
pub characteristics: u32,
}Expand description
Section header structure
Contains metadata for a section in a COFF file, such as name, size, position, and attributes. This structure doesn’t contain the actual data of the section.
Fields§
§name: [u8; 8]Section name, 8-byte ASCII string like “.text”, “.data”, etc.
virtual_size: u32Virtual size of the section in memory
virtual_address: u32Virtual address of the section (RVA) in memory
size_of_raw_data: u32Size of raw data in the file
pointer_to_raw_data: u32File offset of the section
pointer_to_relocations: u32File offset of the relocation table
pointer_to_line_numbers: u32File offset of the line numbers table
number_of_relocations: u16Number of relocation entries
number_of_line_numbers: u16Number of line number entries
characteristics: u32Section characteristics flags describing attributes (read, write, execute, etc.)
Implementations§
Source§impl SectionHeader
impl SectionHeader
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
Source§impl<'de> Deserialize<'de> for SectionHeader
impl<'de> Deserialize<'de> for SectionHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SectionHeader
impl Serialize 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 UnsafeUnpin 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