pub struct PeSection {
pub name: String,
pub start: u64,
pub mem_size: u64,
pub data: Vec<u8>,
pub writable: bool,
pub executable: bool,
}Fields§
§name: StringThe section-table name, e.g. .text; empty when the header has none.
start: u64§mem_size: u64§data: Vec<u8>§writable: boolIMAGE_SCN_MEM_WRITE from the section characteristics. Read straight
from the section table, so a section without the bit is proven
read-only.
executable: boolIMAGE_SCN_MEM_EXECUTE from the section characteristics. Both
BinaryFormat::is_executable and BinaryFormat::mapped_regions
honour it, so a section without the bit is treated as data.
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