MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / PeekByteRaw

Interface PeekByteRaw

crates/virtual-machine/src/memory.rs:14–16  ·  view source on GitHub ↗

Read-only byte peeking that bypasses cache stats and mutation. Used by the debug framebuffer/memory views so they do not pollute cache statistics. The implementation must return the most current value (checking dirty cache lines before falling back to lower levels), or None for unmapped addresses.

Source from the content-addressed store, hash-verified

12 fn peek_byte_raw(&self, addr: u64) -> Option<u8>;
13}
14
15/// Bulk architectural-RAM capture/restore for time-travel snapshots: the image
16/// is RAM overlaid with dirty cache lines (deeper first); load drops lines cold.
17pub trait RamImage {
18 fn ram_len(&self) -> usize;
19 fn ram_base(&self) -> u64;

Callers

nothing calls this directly

Implementers 2

ram.rscrates/virtual-machine/src/memory/ram.
cache.rscrates/virtual-machine/src/memory/cach

Calls

no outgoing calls

Tested by

no test coverage detected