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

Method restore

hail-fuzz/src/input.rs:345–353  ·  view source on GitHub ↗
(&mut self, snapshot: &Box<dyn std::any::Any>)

Source from the content-addressed store, hash-verified

343 }
344
345 fn restore(&mut self, snapshot: &Box<dyn std::any::Any>) {
346 let snapshot = snapshot.downcast_ref::<MultiStreamSnapshot>().unwrap();
347 for (addr, cursor) in &snapshot.cursors {
348 self.streams.get_mut(addr).unwrap().cursor = *cursor;
349 }
350 if let Some(tracer) = self.tracer.as_mut() {
351 tracer.restore(snapshot.tracer.as_ref().unwrap());
352 }
353 }
354}

Callers

nothing calls this directly

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected