Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8]) -> Result<Vec<Frame>, MetaError>
Expand description

Decode every frame in bytes, which holds zero or more frames back to back (one static’s contents, or a whole wasm32 custom section).

§Errors

Returns an error when a frame is truncated or its JSON isn’t a frame.