Skip to main content

MemoryT

Trait MemoryT 

Source
pub trait MemoryT {
    // Required methods
    fn read(&mut self, offset: u32, dest: &mut [u8]) -> Result<(), MemoryError>;
    fn write(&mut self, offset: u32, src: &[u8]) -> Result<(), MemoryError>;
}
Expand description

Allows to access the memory of a VirtT.

Required Methods§

Source

fn read(&mut self, offset: u32, dest: &mut [u8]) -> Result<(), MemoryError>

Read the instances memory at offset into dest.

Source

fn write(&mut self, offset: u32, src: &[u8]) -> Result<(), MemoryError>

Write src into the instances memory at offset.

Implementors§