pub fn encode_parser_frame(
kind: ParserFrameKind,
payload: &[u8],
) -> Result<Vec<u8>, ParserProtocolError>Expand description
Encode one bounded parser frame.
Raw source bytes are copied exactly; no text or base64 transformation occurs.
ยงErrors
Returns an error when the payload exceeds u32 or its kind-specific ceiling.