Skip to main content

b2ValidateReplay

Function b2ValidateReplay 

Source
pub unsafe extern "C" fn b2ValidateReplay(
    data: *const c_void,
    size: c_int,
    workerCount: c_int,
) -> bool
Expand description

Replay a recording by re-running the engine and asserting recorded ids and state match. @param data Recorded bytes, e.g. from b2Recording_GetData or a loaded file @param size Number of recorded bytes @param workerCount Worker count to use for replay. 0 uses the serial single-worker fallback. @return true if replay completed without divergence, false on any mismatch