Struct random_access_memory::RandomAccessMemoryMethods
[−]
[src]
pub struct RandomAccessMemoryMethods { pub page_size: usize, pub buffers: Vec<Vec<u8>>, // some fields omitted }
Methods that have been implemented to provide synchronous access to memory buffers. These should generally be kept private, but exposed to prevent leaking internals.
Fields
page_size: usize
The length length of each buffer.
buffers: Vec<Vec<u8>>
The memory we read/write to.
Trait Implementations
impl Debug for RandomAccessMemoryMethods
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl RandomAccessMethods for RandomAccessMemoryMethods
[src]
fn open(&mut self) -> Result<(), Error>
[src]
Open the backend.
fn write(&mut self, offset: usize, data: &[u8]) -> Result<(), Error>
[src]
Write bytes at an offset to the backend.
fn read(&mut self, offset: usize, length: usize) -> Result<Vec<u8>, Error>
[src]
Read a sequence of bytes at an offset from the backend.
fn del(&mut self, offset: usize, length: usize) -> Result<(), Error>
[src]
Delete a sequence of bytes at an offset from the backend.