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

Method read_byte

crates/virtual-machine/tests/vm_mmu.rs:30–32  ·  view source on GitHub ↗
(&mut self, addr: u64)

Source from the content-addressed store, hash-verified

28impl MemoryAccess for MockMemory {
29 fn read_byte(&mut self, addr: u64) -> Result<u8, VmError> {
30 self.data.get(&addr).copied().ok_or(VmError::BusError(addr))
31 }
32
33 fn read_halfword(&mut self, addr: u64) -> Result<u16, VmError> {
34 let mut value = 0u16;
35 for i in 0..2 {

Calls 1

getMethod · 0.80

Tested by

no test coverage detected