ProcessModule

Struct ProcessModule 

Source
pub struct ProcessModule {
    pub id: usize,
    pub path: String,
    pub name: String,
    pub base_address: usize,
    pub size: usize,
    pub memory: Vec<u8>,
    /* private fields */
}

Fields§

§id: usize§path: String§name: String§base_address: usize§size: usize§memory: Vec<u8>

Implementations§

Source§

impl ProcessModule

Source

pub fn new( process_data: Rc<RefCell<ProcessData>>, id: usize, path: String, name: String, base: usize, size: usize, ) -> Self

Source

pub fn dump_memory(&mut self)

Source

pub fn get_exports(&self) -> Vec<(String, usize)>

Trait Implementations§

Source§

impl BaseReadWrite for ProcessModule

Source§

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

Read memory relative to the object’s location in memory. Supports an optional offset. Read more
Source§

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

Write memory relative to the object’s location in memory. Supports an optional offset. Read more
Source§

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

Read memory from an absolute address Read more
Source§

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

Write memory to an absolute address Read more
Source§

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

Read memory into a buffer from a process handle
Source§

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

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

impl Clone for ProcessModule

Source§

fn clone(&self) -> ProcessModule

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for ProcessModule

Source§

fn default() -> Self

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

impl ReadWrite for ProcessModule

Source§

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

Relatively read an i8 from an optional offset Read more
Source§

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

Relatively read an i32 from an optional offset Read more
Source§

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

Relatively read an i64 from an optional offset Read more
Source§

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

Relatively read an u8 from an optional offset Read more
Source§

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

Relatively read an u32 from an optional offset Read more
Source§

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

Relatively read an u64 from an optional offset Read more
Source§

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

Relatively read an f32 from an optional offset Read more
Source§

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

Relatively read an f64 from an optional offset Read more
Source§

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

Relatively read a bool from an optional offset. A single byte is read from the resolved address, the value of the bool is true if this byte is non-zero. Read more
Source§

fn read_i8_abs(&self, address: usize) -> i8

Absolute read an i8 from an address. Ignores offsets. Sugar for read_memory_abs. Read more
Source§

fn read_i32_abs(&self, address: usize) -> i32

Absolute read an i32 from an address. Ignores offsets. Sugar for read_memory_abs. Read more
Source§

fn read_i64_abs(&self, address: usize) -> i64

Absolute read an i64 from an address. Ignores offsets. Sugar for read_memory_abs. Read more
Source§

fn read_u8_abs(&self, address: usize) -> u8

Absolute read an u8 from an address. Ignores offsets. Sugar for read_memory_abs. Read more
Source§

fn read_u32_abs(&self, address: usize) -> u32

Absolute read an u32 from an address. Ignores offsets. Sugar for read_memory_abs. Read more
Source§

fn read_u64_abs(&self, address: usize) -> u64

Absolute read an u64 from an address. Ignores offsets. Sugar for read_memory_abs. Read more
Source§

fn read_f32_abs(&self, address: usize) -> f32

Absolute read an f32 from an address. Ignores offsets. Sugar for read_memory_abs. Read more
Source§

fn read_f64_abs(&self, address: usize) -> f64

Absolute read an f64 from an address. Ignores offsets. Sugar for read_memory_abs. Read more
Source§

fn read_bool_abs(&self, address: usize) -> bool

Absolute read a byte from an address. Ignores offsets. Sugar for read_memory_abs. The value of the bool is true if this byte is non-zero. Read more
Source§

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

Relatively write an i8 to an optional offset Read more
Source§

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

Relatively write an i32 to an optional offset Read more
Source§

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

Relatively write an i64 to an optional offset Read more
Source§

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

Relatively write an u8 to an optional offset Read more
Source§

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

Relatively write an u32 to an optional offset Read more
Source§

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

Relatively write an u64 to an optional offset Read more
Source§

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

Relatively write an f32 to an optional offset Read more
Source§

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

Relatively write an f64 to an optional offset Read more
Source§

fn write_i8_abs(&self, address: usize, value: i8)

Absolute write an i8 Read more
Source§

fn write_i32_abs(&self, address: usize, value: i32)

Absolute write an i32 Read more
Source§

fn write_i64_abs(&self, address: usize, value: i64)

Absolute write an i64 Read more
Source§

fn write_u8_abs(&self, address: usize, value: u8)

Absolute write an u8 Read more
Source§

fn write_u32_abs(&self, address: usize, value: u32)

Absolute write an u32 Read more
Source§

fn write_u64_abs(&self, address: usize, value: u64)

Absolute write an u64 Read more
Source§

fn write_f32_abs(&self, address: usize, value: f32)

Absolute write an f32 Read more
Source§

fn write_f64_abs(&self, address: usize, value: f64)

Absolute write an f64 Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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.