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

Method read_doubleword

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

Source from the content-addressed store, hash-verified

68
69 fn read_doubleword(&mut self, addr: u64) -> Result<u64, VmError> {
70 let lo = self.read_word(addr)? as u64;
71 let hi = self.read_word(addr + 4)? as u64;
72 Ok(lo | (hi << 32))
73 }
74
75 fn write_byte(&mut self, _addr: u64, _data: u8) -> Result<(), VmError> {
76 Err(VmError::WriteToRom)
77 }

Callers

nothing calls this directly

Calls 1

read_wordMethod · 0.45

Tested by

no test coverage detected