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

Method read_byte

crates/virtual-machine/src/memory/ram.rs:53–58  ·  view source on GitHub ↗
(&mut self, addr: u64)

Source from the content-addressed store, hash-verified

51 self.base
52 }
53 fn write_image_into(&self, buf: &mut [u8]) {
54 buf.copy_from_slice(&self.data);
55 }
56 fn load_image(&mut self, bytes: &[u8]) {
57 self.data.copy_from_slice(bytes);
58 }
59}
60
61impl PeekByteRaw for Ram {

Callers 3

read_halfwordMethod · 0.45
read_wordMethod · 0.45
load_intFunction · 0.45

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected