AUDIO
Source snapshot · 11 November 2026

API reference / ravet_foundation::parameter_record_version

Function parameter_record_version 

pub fn parameter_record_version(
    product: [u8; 8],
    input: &[u8],
) -> Result<u32, ParameterError>
Expand description

Read the version of a complete parameter record without decoding it.

Use this to select the schema the record was written with, decode it with ParameterState::decode at that version, then ParameterState::migrate to the current schema. Products reject versions newer than they understand. Checks the product ID and the 16-byte header only; zero is reserved.