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 an unknown version, unknown/dense flag bits, out-of-range table indices, oversize counts, reserved tags, and any nonzero or byte-sized trailing padding, failing closed on untrusted input.