Skip to main content

parse_envelope_bytes

Function parse_envelope_bytes 

Source
pub fn parse_envelope_bytes(
    bytes: &[u8],
    limits: CompositionLimits,
) -> Result<ModelCompositionEnvelope, CompositionError>
Expand description

Parse raw provider output with a hard byte limit and a non-allocating JSON scanner before typed deserialization. Deep/large hostile input is rejected before serde can recursively construct a tree.