Create RAM of `size_bytes` starting at `base`.
(base: u64, size_bytes: usize)
| 13 | impl Ram { |
| 14 | /// Create RAM of `size_bytes` starting at `base`. |
| 15 | pub fn new(base: u64, size_bytes: usize) -> Self { |
| 16 | Self { |
| 17 | data: vec![0u8; size_bytes], |
| 18 | base, |
| 19 | size: size_bytes as u64, |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | pub fn contains(&self, addr: u64) -> bool { |
| 24 | addr >= self.base && addr < self.base + self.size |
nothing calls this directly
no outgoing calls
no test coverage detected