This method store a read record to an address for each byte in the data buffer. This method should be called prior to calling `process_instruction` in order to capture the record in the analysis.
(&mut self, base: Address, data: &[u8])
| 704 | /// This method should be called prior to calling `process_instruction` |
| 705 | /// in order to capture the record in the analysis. |
| 706 | pub fn insert_read(&mut self, base: Address, data: &[u8]) { |
| 707 | for (i, val) in data.iter().enumerate() { |
| 708 | let address = Address::new(base.space(), base.offset() + i as u64); |
| 709 | self.oplog.insert_read(&address, *val); |
| 710 | } |
| 711 | } |
| 712 | |
| 713 | /// This method returns the last seen tick. |
| 714 | pub fn tick(&self) -> Tick { |