Trait it_memory_traits::MemoryReadable
source · [−]pub trait MemoryReadable {
fn read_byte(&self, offset: u32) -> u8;
fn read_array<const COUNT: usize>(&self, offset: u32) -> [u8; COUNT];
fn read_vec(&self, offset: u32, size: u32) -> Vec<u8>;
}Required methods
This function will panic if the offset is out of bounds.
It is caller’s responsibility to check if the offset is in bounds
using MemoryView::check_bounds function
This function will panic if [offset..offset + COUNT] is out of bounds.
It is caller’s responsibility to check if the offset is in bounds
using MemoryView::check_bounds function.