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§
Trait Implementations§
Source§impl BaseReadWrite for ProcessModule
impl BaseReadWrite for ProcessModule
Source§fn read_memory_rel(&self, offset: Option<usize>, buffer: &mut [u8]) -> bool
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
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
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
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
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
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
impl Clone for ProcessModule
Source§fn clone(&self) -> ProcessModule
fn clone(&self) -> ProcessModule
Returns a duplicate 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 Default for ProcessModule
impl Default for ProcessModule
Source§impl ReadWrite for ProcessModule
impl ReadWrite for ProcessModule
Source§fn read_i8_rel(&self, address: Option<usize>) -> i8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
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)
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)
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)
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)
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)
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)
fn write_f32_rel(&self, address: Option<usize>, value: f32)
Relatively write an f32 to an optional offset Read more
Auto Trait Implementations§
impl Freeze for ProcessModule
impl !RefUnwindSafe for ProcessModule
impl !Send for ProcessModule
impl !Sync for ProcessModule
impl Unpin for ProcessModule
impl !UnwindSafe for ProcessModule
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