pub struct PeSection {
pub name: String,
pub virtual_size: u32,
pub raw_size: u32,
pub virtual_address: u32,
pub entropy: f32,
pub is_executable: bool,
pub is_writable: bool,
pub is_readable: bool,
}Expand description
A single PE section with computed Shannon entropy.
Fields§
§name: StringSection name (up to 8 bytes, null-terminated, lossy UTF-8).
virtual_size: u32Virtual size in bytes as reported in the section header.
raw_size: u32Size of raw data on disk (may be 0 for BSS-style sections).
virtual_address: u32Virtual address (RVA) relative to the image base.
entropy: f32Shannon entropy of the raw section data (0.0 – 8.0).
is_executable: boolTrue when IMAGE_SCN_MEM_EXECUTE (0x2000_0000) is set.
is_writable: boolTrue when IMAGE_SCN_MEM_WRITE (0x8000_0000) is set.
is_readable: boolTrue when IMAGE_SCN_MEM_READ (0x4000_0000) is set.
Trait Implementations§
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