pub struct Query<'a>(_);
Expand description
Allows to easily query process memory.
Implementations
sourceimpl<'a> Query<'a>
impl<'a> Query<'a>
sourcepub fn read_at(&self, addr: usize) -> bool
pub fn read_at(&self, addr: usize) -> bool
Checks if it’s possible to read memory at the address.
sourcepub fn write_at(&self, addr: usize) -> bool
pub fn write_at(&self, addr: usize) -> bool
Checks if it’s possible to write memory to the address.
sourcepub fn execute_at(&self, addr: usize) -> bool
pub fn execute_at(&self, addr: usize) -> bool
Checks if it’s possible to execute memory at the address.
sourcepub fn boundary(&self, addr: usize) -> Option<usize>
pub fn boundary(&self, addr: usize) -> Option<usize>
Returns the start of the next allocated chunk
sourcepub fn base(&self, addr: usize) -> Option<usize>
pub fn base(&self, addr: usize) -> Option<usize>
Returns the base address of this allocated chunk.
sourcepub fn access(&self, addr: usize) -> PAGE_PROTECTION_FLAGS
pub fn access(&self, addr: usize) -> PAGE_PROTECTION_FLAGS
Returns the protection of the memory
Auto Trait Implementations
impl<'a> RefUnwindSafe for Query<'a>
impl<'a> Send for Query<'a>
impl<'a> Sync for Query<'a>
impl<'a> Unpin for Query<'a>
impl<'a> UnwindSafe for Query<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more