Struct sputnikvm::SeqMemory
[−]
[src]
pub struct SeqMemory<P: Patch> { /* fields omitted */ }
A sequencial memory. It uses Rust's Vec
for internal
representation.
Methods
impl<P: Patch> SeqMemory<P>
[src]
Trait Implementations
impl<P: Patch> Default for SeqMemory<P>
[src]
impl<P: Patch> Memory for SeqMemory<P>
[src]
fn check_write(&self, index: U256) -> Result<(), NotSupportedError>
[src]
Check whether write on this index would result in an error. If this function returns Ok, then both write
and write_raw
on this index should succeed. Read more
fn check_write_range(
&self,
start: U256,
len: U256
) -> Result<(), NotSupportedError>
[src]
&self,
start: U256,
len: U256
) -> Result<(), NotSupportedError>
Check whether write on the given index range would result in an error. If this function returns Ok, then both write
and write_raw
on the given index range should succeed. Read more
fn write(&mut self, index: U256, value: M256) -> Result<(), NotSupportedError>
[src]
Write value into the index.
fn write_raw(&mut self, index: U256, value: u8) -> Result<(), NotSupportedError>
[src]
Write only one byte value into the index.
fn read(&self, index: U256) -> M256
[src]
Read value from the index.
fn read_raw(&self, index: U256) -> u8
[src]
Read only one byte value from the index.