MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / serialize

Method serialize

hail-fuzz/src/coverage.rs:195–203  ·  view source on GitHub ↗
(&self, _: &mut Vm, out: &mut String)

Source from the content-addressed store, hash-verified

193 }
194
195 fn serialize(&self, _: &mut Vm, out: &mut String) {
196 use std::fmt::Write;
197 for (i, entry) in self.hit.iter().enumerate() {
198 let bytes = entry.to_le_bytes();
199 for (j, byte) in bytes.iter().enumerate().filter(|(_, byte)| **byte != 0) {
200 writeln!(out, "{:#06x} = {:#04x}", i * 8 + j, *byte).unwrap();
201 }
202 }
203 }
204
205 fn reset(&mut self, vm: &mut Vm) {
206 vm.cpu.trace[self.storage].data_mut().fill(0);

Callers 1

fuzzing_loopFunction · 0.45

Calls 2

update_mapping_cacheMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected