pub struct MemoryRegion {
pub start_address: usize,
pub size: usize,
/* private fields */
}
Fields§
§start_address: usize
§size: usize
Implementations§
Source§impl MemoryRegion
impl MemoryRegion
pub fn new(start_address: usize, size: usize, is_safe: bool) -> Result<Self>
pub fn scan_aob(&self, pat: &MemoryPattern) -> Result<Option<usize>>
pub fn scan_aob_all_matches(&self, pat: &MemoryPattern) -> Result<Vec<usize>>
Sourcepub fn scan_aob_all_matches_aligned(
&self,
pat: &MemoryPattern,
align: Option<usize>,
) -> Result<Vec<usize>>
pub fn scan_aob_all_matches_aligned( &self, pat: &MemoryPattern, align: Option<usize>, ) -> Result<Vec<usize>>
Scan all aob matches aligned at align
. If None is provided, it will align to 4 by default
pub fn scan_aligned_value<T>(&self, value: T) -> Result<Vec<usize>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryRegion
impl RefUnwindSafe for MemoryRegion
impl Send for MemoryRegion
impl Sync for MemoryRegion
impl Unpin for MemoryRegion
impl UnwindSafe for MemoryRegion
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