pub struct Memory { /* private fields */ }
Expand description
Emulates main memory.
Implementations§
Source§impl Memory
impl Memory
Sourcepub fn read_halfword(&self, address: u64) -> u16
pub fn read_halfword(&self, address: u64) -> u16
Sourcepub fn read_doubleword(&self, address: u64) -> u64
pub fn read_doubleword(&self, address: u64) -> u64
Sourcepub fn read_bytes(&self, address: u64, width: u64) -> u64
pub fn read_bytes(&self, address: u64, width: u64) -> u64
Sourcepub fn write_byte(&mut self, address: u64, value: u8)
pub fn write_byte(&mut self, address: u64, value: u8)
Sourcepub fn write_halfword(&mut self, address: u64, value: u16)
pub fn write_halfword(&mut self, address: u64, value: u16)
Sourcepub fn write_word(&mut self, address: u64, value: u32)
pub fn write_word(&mut self, address: u64, value: u32)
Sourcepub fn write_doubleword(&mut self, address: u64, value: u64)
pub fn write_doubleword(&mut self, address: u64, value: u64)
Sourcepub fn write_bytes(&mut self, address: u64, value: u64, width: u64)
pub fn write_bytes(&mut self, address: u64, value: u64, width: u64)
Sourcepub fn validate_address(&self, address: u64) -> bool
pub fn validate_address(&self, address: u64) -> bool
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
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