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

Method insert_write

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

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

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

spaceMethod · 0.80
offsetMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected