Struct mem_rs::pointer::Pointer

source ·
pub struct Pointer {
    pub debug: bool,
    /* private fields */
}

Fields§

§debug: bool

Implementations§

source§

impl Pointer

source

pub fn new( process_data: Rc<RefCell<ProcessData>>, is_64_bit: bool, base_address: usize, offsets: Vec<usize> ) -> Self

source

pub fn get_base_address(&self) -> usize

Trait Implementations§

source§

impl BaseReadWrite for Pointer

source§

fn read_memory_rel(&self, offset: Option<usize>, buffer: &mut [u8]) -> bool

Read memory relative to the object’s location in memory
source§

fn write_memory_rel(&self, offset: Option<usize>, buffer: &[u8]) -> bool

Write memory relative to the object’s location in memory
source§

fn read_memory_abs(&self, address: usize, buffer: &mut [u8]) -> bool

Read memory at absolute address
source§

fn write_memory_abs(&self, address: usize, buffer: &[u8]) -> bool

Write memory at absolute address
source§

fn read_with_handle( &self, handle: HANDLE, address: usize, buffer: &mut [u8] ) -> bool

Read memory into a buffer from a process handle
source§

fn write_with_handle( &self, handle: HANDLE, address: usize, buffer: &[u8] ) -> bool

Write from a buffer ino memory from a process handle
source§

impl Default for Pointer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl ReadWrite for Pointer

source§

fn read_i8_rel(&self, address: Option<usize>) -> i8

================================================================================================================================================================== Reading Read an i8 from the given address
source§

fn read_i32_rel(&self, address: Option<usize>) -> i32

Read an i32 from the given address
source§

fn read_i64_rel(&self, address: Option<usize>) -> i64

Read an i64 from the given address
source§

fn read_u8_rel(&self, address: Option<usize>) -> u8

Read an u8 from the given address
source§

fn read_u32_rel(&self, address: Option<usize>) -> u32

Read an u32 from the given address
source§

fn read_u64_rel(&self, address: Option<usize>) -> u64

Read an u64 from the given address
source§

fn read_f32_rel(&self, address: Option<usize>) -> f32

Read an f32 from the given address
source§

fn read_f64_rel(&self, address: Option<usize>) -> f64

Read an f64 from the given address
source§

fn read_bool_rel(&self, address: Option<usize>) -> bool

Read a bool from the given address
source§

fn write_i8_rel(&self, address: Option<usize>, value: i8)

================================================================================================================================================================== Writing Write an i8 to the given address
source§

fn write_i32_rel(&self, address: Option<usize>, value: i32)

Write an i32 to the given address
source§

fn write_i64_rel(&self, address: Option<usize>, value: i64)

Write an i64 to the given address
source§

fn write_u8_rel(&self, address: Option<usize>, value: u8)

Write an u8 to the given address
source§

fn write_u32_rel(&self, address: Option<usize>, value: u32)

Write an u32 to the given address
source§

fn write_u64_rel(&self, address: Option<usize>, value: u64)

Write an u64 to the given address
source§

fn write_f32_rel(&self, address: Option<usize>, value: f32)

Write an f32 to the given address
source§

fn write_f64_rel(&self, address: Option<usize>, value: f64)

Write an f64 to the given address

Auto Trait Implementations§

§

impl Freeze for Pointer

§

impl !RefUnwindSafe for Pointer

§

impl !Send for Pointer

§

impl !Sync for Pointer

§

impl Unpin for Pointer

§

impl !UnwindSafe for Pointer

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.