Skip to main content

SyscallMemory

Trait SyscallMemory 

Source
pub trait SyscallMemory {
    // Required methods
    fn load_bytes(&mut self, address: u64, size: usize) -> Option<Vec<u8>>;
    fn store_bytes(&mut self, address: u64, bytes: &[u8]) -> bool;
    fn can_write(&mut self, address: u64, size: usize) -> bool;
    fn read_string(&mut self, address: u64, max: usize) -> Result<String, i32>;
}

Required Methods§

Source

fn load_bytes(&mut self, address: u64, size: usize) -> Option<Vec<u8>>

Source

fn store_bytes(&mut self, address: u64, bytes: &[u8]) -> bool

Source

fn can_write(&mut self, address: u64, size: usize) -> bool

Source

fn read_string(&mut self, address: u64, max: usize) -> Result<String, i32>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§