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

Method peek_bytes

crates/virtual-machine/src/virtual_machine.rs:227–229  ·  view source on GitHub ↗

Read up to `len` bytes from the address space starting at `addr`. Unroutable addresses produce 0x00 bytes.

(&mut self, addr: u64, len: usize)

Source from the content-addressed store, hash-verified

225 bus.write_byte(addr, 0)?;
226 }
227 }
228 }
229
230 let heap_base = align_up(highest_mapped, 0x1000);
231 bus.write_doubleword(HEAP_PTR_ADDR, heap_base)?;
232

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected