This method stores a write record to an address for each byte in the data buffer. This method should be called prior to calling `process_instruction` (eventually will be relaxed to `end_instruction`) in order to capture the record in the analysis.
(&mut self, base: Address, data: &[u8])
| 692 | /// (eventually will be relaxed to `end_instruction`) in order to capture |
| 693 | /// the record in the analysis. |
| 694 | pub fn insert_write(&mut self, base: Address, data: &[u8]) { |
| 695 | for (i, val) in data.iter().enumerate() { |
| 696 | let address = Address::new(base.space(), base.offset() + i as u64); |
| 697 | self.oplog.insert_write(&address, *val); |
| 698 | } |
| 699 | } |
| 700 | |
| 701 | /// This method store a read record to an address for each byte in the |
| 702 | /// data buffer. |