Skip to main content

decode_located_tree_frame_with_limits

Function decode_located_tree_frame_with_limits 

Source
pub fn decode_located_tree_frame_with_limits(
    codec: CodecId,
    bytes: &[u8],
    limits: DecodeLimits,
) -> Result<(FrameTables, LocatedExprTree)>
Expand description

Decodes frame bytes into its side FrameTables and a LocatedExprTree, enforcing the supplied limits.

This is the bounded decode primitive the codec roles call. It rejects bad magic/version/flags, out-of-range table indices, oversize counts, and any trailing bytes after the payload, failing closed on untrusted input.