MCPcopy Create free account
hub / github.com/NationalSecurityAgency/TraceAnalysis / insert_read

Method insert_read

dynamic-dataflow/core/src/analysis.rs:706–711  ·  view source on GitHub ↗

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])

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

spaceMethod · 0.80
offsetMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected