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

Method size

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

Return the size of ROM in bytes.

(&self)

Source from the content-addressed store, hash-verified

36 /// Return the size of ROM in bytes.
37 pub fn size(&self) -> u64 {
38 self.size
39 }
40
41 /// Peek at a ROM byte without mutation.
42 pub fn peek_byte(&self, addr: u64) -> Option<u8> {
43 self.index(addr).map(|idx| self.data[idx])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected