Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8]) -> Result<(SceneDoc, CacheHeader)>
Expand description

Decode a cache payload. Bad magic, truncation, trailing bytes, or a version stamp that is not the live one all fail loudly — the caller falls back to TOML and says so, never silently reinterprets.