Struct WindowsFields
pub struct WindowsFields {Show 21 fields
pub image_base: u64,
pub section_alignment: u32,
pub file_alignment: u32,
pub major_operating_system_version: u16,
pub minor_operating_system_version: u16,
pub major_image_version: u16,
pub minor_image_version: u16,
pub major_subsystem_version: u16,
pub minor_subsystem_version: u16,
pub win32_version_value: u32,
pub size_of_image: u32,
pub size_of_headers: u32,
pub checksum: u32,
pub subsystem: Subsystem,
pub dll_characteristics: u16,
pub size_of_stack_reserve: u64,
pub size_of_stack_commit: u64,
pub size_of_heap_reserve: u64,
pub size_of_heap_commit: u64,
pub loader_flags: u32,
pub number_of_rva_and_sizes: u32,
}Expand description
Provides access to low-level file and memory parsing utilities.
The crate::Parser type is used for decoding CIL bytecode and metadata streams.
§Usage Examples
use dotscope::{Parser, assembly::decode_instruction};
let code = [0x2A]; // ret
let mut parser = Parser::new(&code);
let instr = decode_instruction(&mut parser, 0x1000)?;
assert_eq!(instr.mnemonic, "ret");Windows-specific fields.
Fields§
§image_base: u64Image base address
section_alignment: u32Section alignment in memory
file_alignment: u32File alignment
major_operating_system_version: u16Major OS version
minor_operating_system_version: u16Minor OS version
major_image_version: u16Major image version
minor_image_version: u16Minor image version
major_subsystem_version: u16Major subsystem version
minor_subsystem_version: u16Minor subsystem version
win32_version_value: u32Win32 version value
size_of_image: u32Size of image
size_of_headers: u32Size of headers
checksum: u32Checksum
subsystem: SubsystemSubsystem
dll_characteristics: u16DLL characteristics
size_of_stack_reserve: u64Size of stack reserve
size_of_stack_commit: u64Size of stack commit
size_of_heap_reserve: u64Size of heap reserve
size_of_heap_commit: u64Size of heap commit
loader_flags: u32Loader flags
number_of_rva_and_sizes: u32Number of RVA and sizes
Implementations§
§impl WindowsFields
impl WindowsFields
Trait Implementations§
§impl Clone for WindowsFields
impl Clone for WindowsFields
§fn clone(&self) -> WindowsFields
fn clone(&self) -> WindowsFields
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 moreAuto Trait Implementations§
impl Freeze for WindowsFields
impl RefUnwindSafe for WindowsFields
impl Send for WindowsFields
impl Sync for WindowsFields
impl Unpin for WindowsFields
impl UnwindSafe for WindowsFields
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more