Skip to main content

b2RecPlayer_Create

Function b2RecPlayer_Create 

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

Open a recording for incremental playback and replay up to the first step. The player copies the bytes, so you may free or destroy the source buffer immediately after this call. @param data Recorded bytes, e.g. from b2Recording_GetData or a loaded file @param size Number of recorded bytes @param workerCount Worker count for the replay world. 0 uses the serial single-worker fallback. @return A player handle, or NULL if the recording is malformed