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

Method write_doubleword

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

Source from the content-addressed store, hash-verified

19
20 fn write_doubleword(&mut self, addr: u64, value: u64) {
21 for i in 0..8 {
22 self.data
23 .insert(addr + i, ((value >> (i * 8)) & 0xFF) as u8);
24 }
25 }
26}
27
28impl MemoryAccess for MockMemory {
29 fn read_byte(&mut self, addr: u64) -> Result<u8, VmError> {

Calls 2

insertMethod · 0.45
write_byteMethod · 0.45

Tested by

no test coverage detected