pub struct MappedMemory { /* private fields */ }Expand description
allocated memory region for PE image
Implementations§
Source§impl MappedMemory
impl MappedMemory
Sourcepub fn as_slice_mut(&mut self) -> &mut [u8] ⓘ
pub fn as_slice_mut(&mut self) -> &mut [u8] ⓘ
get mutable slice to entire region
Sourcepub fn write_value_at<T>(&mut self, offset: usize, value: T) -> Result<()>
pub fn write_value_at<T>(&mut self, offset: usize, value: T) -> Result<()>
write value at offset
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MappedMemory
impl RefUnwindSafe for MappedMemory
impl Unpin for MappedMemory
impl UnsafeUnpin for MappedMemory
impl UnwindSafe for MappedMemory
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