Struct frida_gum::MemoryRange
source · pub struct MemoryRange { /* private fields */ }
Implementations§
source§impl MemoryRange
impl MemoryRange
pub fn new(base_address: NativePointer, size: usize) -> MemoryRange
sourcepub fn base_address(&self) -> NativePointer
pub fn base_address(&self) -> NativePointer
Get the start address of the range.
sourcepub fn size(&self) -> usize
pub fn size(&self) -> usize
Get the size of the range.
The end address of the range can be computed by adding the MemoryRange::base_address()
to the size.
pub fn scan(&self, pattern: &MatchPattern) -> Vec<ScanResult>
Trait Implementations§
source§impl Clone for MemoryRange
impl Clone for MemoryRange
source§fn clone(&self) -> MemoryRange
fn clone(&self) -> MemoryRange
Returns a copy 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 moresource§impl Debug for MemoryRange
impl Debug for MemoryRange
source§impl Display for MemoryRange
impl Display for MemoryRange
source§impl From<&MemoryRange> for Range<usize>
impl From<&MemoryRange> for Range<usize>
source§fn from(value: &MemoryRange) -> Self
fn from(value: &MemoryRange) -> Self
Converts to this type from the input type.
source§impl From<MemoryRange> for Range<usize>
impl From<MemoryRange> for Range<usize>
source§fn from(value: MemoryRange) -> Self
fn from(value: MemoryRange) -> Self
Converts to this type from the input type.
source§impl LowerHex for MemoryRange
impl LowerHex for MemoryRange
Auto Trait Implementations§
impl Freeze for MemoryRange
impl RefUnwindSafe for MemoryRange
impl Send for MemoryRange
impl Sync for MemoryRange
impl Unpin for MemoryRange
impl UnwindSafe for MemoryRange
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