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

Method contains

crates/virtual-machine/src/memory/rom.rs:23–25  ·  view source on GitHub ↗

Quick check whether an address falls inside this ROM.

(&self, addr: u64)

Source from the content-addressed store, hash-verified

21
22 /// Quick check whether an address falls inside this ROM.
23 pub fn contains(&self, addr: u64) -> bool {
24 addr >= self.base && addr < self.base + self.size
25 }
26
27 // Physical address -> index into the data array; `None` if out of bounds.
28 fn index(&self, addr: u64) -> Option<usize> {

Callers 1

indexMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected