pub struct Cache { /* private fields */ }
Expand description
Currently this is only a static implementation of the cache. We cannot handle different S_NEAR or S_SAME parameters.
Implementations§
Source§impl Cache
impl Cache
pub const S_NEAR: usize = 4usize
pub const S_SAME: usize = 3usize
pub const SAME_START: usize = 6usize
pub fn new() -> Self
Sourcepub fn addr_decode(&mut self, read_value: u64, here: u64, mode: usize) -> u64
pub fn addr_decode(&mut self, read_value: u64, here: u64, mode: usize) -> u64
read_value is the value read from the address section here is the current position in the target output mode is the mode of the address returns (address, bytes_read_from_addr_section)
pub fn addr_encode(&mut self, addr: usize, here: usize) -> (u32, u8)
pub fn peek_addr_encode(&self, addr: usize, here: usize) -> (u32, u8)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cache
impl RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl UnwindSafe for Cache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more