pub struct PeSection {
pub name: String,
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,
pub data: Vec<u8>,
}Expand description
PE section structure
Contains detailed information for each section in the PE file, including name, virtual address, size, etc. Sections are the basic organizational units in a PE file, containing different types of data (code, data, resources, etc.).
Fields§
§name: StringSection name, up to 8 characters
virtual_size: u32Virtual size of the section in memory
virtual_address: u32Virtual address of the section in memory
size_of_raw_data: u32Size of raw data in the file
pointer_to_raw_data: u32Pointer to raw data in the file
pointer_to_relocations: u32Pointer to the relocation table
pointer_to_line_numbers: u32Pointer to the line numbers table
number_of_relocations: u16Number of relocation entries
number_of_line_numbers: u16Number of line numbers
characteristics: u32Section characteristics flags
data: Vec<u8>Raw data of the section
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PeSection
impl<'de> Deserialize<'de> for PeSection
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
Auto Trait Implementations§
impl Freeze for PeSection
impl RefUnwindSafe for PeSection
impl Send for PeSection
impl Sync for PeSection
impl Unpin for PeSection
impl UnsafeUnpin for PeSection
impl UnwindSafe for PeSection
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