pub fn recorded_before_v2_timebase(bytes: &[u8]) -> Result<bool, MovieError>Expand description
Peek a .rnm blob’s header to learn its recording epoch.
Checks whether it was recorded on a pre-v2.0.0-timebase build
(format_version < 2), WITHOUT fully parsing the movie. Intended for
tooling/UI that wants to warn before relying on the determinism
(verify-replay) guarantee across the v2.0.0 engine-timebase boundary —
see MOVIE_FORMAT_VERSION’s v2 doc.
Since v2.9.8 Movie::deserialize refuses every movie older than
MIN_MOVIE_FORMAT_VERSION, so a movie that parses is never pre-v2; the
function survives for tooling that inspects raw files, and still answers
for any header it is shown.
§Errors
Returns MovieError::HeaderTruncated or MovieError::BadMagic if
the blob doesn’t even have a valid movie header.