| 193 | /// Represents an input source where every MMIO access is read from a global input stream. |
| 194 | #[derive(Clone)] |
| 195 | pub struct GlobalMmioSource { |
| 196 | /// The input bytes provided by the fuzzer. |
| 197 | pub data: Vec<u8>, |
| 198 | /// The offset within `data` to read the next peripheral read from. |
| 199 | pub offset: usize, |
| 200 | /// (address, len) pairs used to reconstruct which peripheral accesses which input byte. |
| 201 | pub(crate) mmio_accesses: Option<Vec<(u32, u32)>>, |
| 202 | } |
| 203 | |
| 204 | impl GlobalMmioSource { |
| 205 | pub fn empty() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected