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

Function timers_take_snapshot

icicle-cortexm/fuzzware-native/timer.c:437–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437void *timers_take_snapshot(uc_engine *uc) {
438 size_t size = sizeof(struct TimerState);
439 void *result = malloc(size);
440 memcpy(result, &uc->fw->timers, size);
441 return result;
442}
443
444void timers_restore_snapshot(uc_engine *uc, void *snapshot) {
445 memcpy(&uc->fw->timers, snapshot, sizeof(struct TimerState));

Callers 1

takeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected