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

Method peek_byte

crates/virtual-machine/src/memory/ram.rs:41–43  ·  view source on GitHub ↗

Peek at a byte without mutation (for debugging).

(&self, addr: u64)

Source from the content-addressed store, hash-verified

39
40 /// Peek at a byte without mutation (for debugging).
41 pub fn peek_byte(&self, addr: u64) -> Option<u8> {
42 self.index(addr).map(|idx| self.data[idx])
43 }
44}
45
46impl RamImage for Ram {

Callers 3

peek_bytes_rawMethod · 0.45
peek_byte_rawMethod · 0.45

Calls 1

indexMethod · 0.45

Tested by 1