pub fn decode_trace(ambe: &[u8; 9]) -> ([usize; 9], f32, usize, [u8; 49])Expand description
Inspection helper for golden-vector validation.
Runs just the unpack → ECC → parameter-extract pipeline for a
single frame and returns (b[0..9], w0, L, ambe_d) as the decoder
sees them. Used by the validation harness in
examples/decode_ambe_stream.rs to diff against mbelib’s decoded
(b, w0, L, ambe_d) for identical wire bytes.
The full ambe_d vector (49 bits, one byte per bit, 0 or 1) is
returned alongside the extracted parameter fields so downstream
tooling can localize a divergence to “ECC disagrees” (ambe_d
bits differ) vs “parameter extraction disagrees” (ambe_d bits
match but b[] differs).
This is deliberately stateless — each call constructs fresh
MbeParams — so the output depends only on the input bytes and
can be compared frame-for-frame against another implementation.