Skip to main content

recorded_before_v2_timebase

Function recorded_before_v2_timebase 

Source
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.

Playback itself is unaffected: Movie::deserialize still accepts and plays any format_version <= MOVIE_FORMAT_VERSION movie as pure input replay; this function exists only to let a caller decide whether to additionally warn that the bit-identical guarantee is unverified for a movie recorded across the boundary.

§Errors

Returns MovieError::HeaderTruncated or MovieError::BadMagic if the blob doesn’t even have a valid movie header.