pub fn decode_object(
buf: &[u8],
index: usize,
restore_non_finite: Option<bool>,
verify_hash: Option<bool>,
) -> Result<DecodedMessage, JsValue>Expand description
Decode a single object by index.
@param buf - Raw .tgm message bytes
@param index - Zero-based object index
@param restore_non_finite - Restore canonical NaN / Inf from mask companion (default: true)
@param verify_hash - Per-frame hash verification (default false).
See decode for the full contract.