Struct windows_win::raw::memory::Info
source · pub struct Info(pub MEMORY_BASIC_INFORMATION);
Expand description
Convenient wrapper over MEMORY_BASIC_INFORMATION
Tuple Fields§
§0: MEMORY_BASIC_INFORMATION
Implementations§
source§impl Info
impl Info
sourcepub fn base_addr(&self) -> usize
pub fn base_addr(&self) -> usize
Returns region’s base address
Memory can be read from this address up to <base> + <region size>
You can get this pointer by accessing inner structure self.0.BaseAddress
sourcepub fn alloc_base(&self) -> usize
pub fn alloc_base(&self) -> usize
Returns Allocation base.
You can get this pointer by accessing inner structure self.0.AllocationBase
sourcepub fn is_commit(&self) -> bool
pub fn is_commit(&self) -> bool
Returns whether memory is committed or not.
Basically it is in use currently
sourcepub fn is_reserved(&self) -> bool
pub fn is_reserved(&self) -> bool
Returns whether memory is reserved or not.
This space is not backed by actual physical storage.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Info
impl !Send for Info
impl !Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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