Create a ROM from a byte vector. `base` is the start address in the system memory map (normally `0x0000_0000`).
(base: u64, data: Vec<u8>)
| 15 | /// Create a ROM from a byte vector. `base` is the start address in the system |
| 16 | /// memory map (normally `0x0000_0000`). |
| 17 | pub fn new(base: u64, data: Vec<u8>) -> Self { |
| 18 | let size = data.len() as u64; |
| 19 | Self { data, base, size } |
| 20 | } |
| 21 | |
| 22 | /// Quick check whether an address falls inside this ROM. |
| 23 | pub fn contains(&self, addr: u64) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected