MemoryWrite

Trait MemoryWrite 

Source
pub trait MemoryWrite {
    // Required method
    fn try_write_bytes(&self, address: u64, buffer: &[u8]) -> Option<()>;
}
Expand description

Represents any type with a buffer that can be written to

Required Methods§

Source

fn try_write_bytes(&self, address: u64, buffer: &[u8]) -> Option<()>

Writes bytes from the buffer into the process at the specified address. Returns None if the address is not valid

Trait Implementations§

Source§

impl MemoryWriteExt for dyn MemoryWrite

Source§

fn try_write<T: Pod>(&self, address: u64, buffer: &T) -> Option<()>

Returns None if the address is not valid
Source§

unsafe fn try_write_unchecked<T>(&self, address: u64, buffer: &T) -> Option<()>

Writes any type T to the process without the restriction of Pod
Source§

fn write<T: Pod>(&self, address: u64, buffer: &T)

Writes bytes to the process at the specified address with the value of type T. Panics if the address is not valid

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + MemoryWrite + ?Sized> MemoryWrite for &'a T

Source§

fn try_write_bytes(&self, address: u64, buffer: &[u8]) -> Option<()>

Source§

impl<'a, T: 'a + MemoryWrite + ?Sized> MemoryWrite for &'a mut T

Source§

fn try_write_bytes(&self, address: u64, buffer: &[u8]) -> Option<()>

Source§

impl<T: AsMut<[u8]>> MemoryWrite for Cell<T>

Source§

fn try_write_bytes(&self, address: u64, buffer: &[u8]) -> Option<()>

Source§

impl<T: MemoryWrite + ?Sized> MemoryWrite for Box<T>

Source§

fn try_write_bytes(&self, address: u64, buffer: &[u8]) -> Option<()>

Implementors§