Module codec

Module codec 

Source
Expand description

Wire codec for text messages: exact bytes only.

The codec decodes base options into typed fields, retains extension options verbatim, and records the occurrence information that semantic validation needs. It performs no conversation-context checks.

Structs§

ParseInfo
Occurrence information recorded while decoding, for semantic validation and diagnostics.

Functions§

encode
Encode a text message into a caller-provided buffer, returning the number of bytes written.
parse
Decode a text-message payload (after the payload-type byte).
parse_with_info
Decode a text-message payload, also returning option occurrence information for semantic validation.