Skip to main content

Module codec

Module codec 

Source
Expand description

The dtshim wire format.

A frame is a four-byte big-endian payload length followed by that many bytes of a Postcard-encoded Message. This module owns the payload encoding and the size limit.

Constants§

MAX_PAYLOAD_LEN

Functions§

decode_payload
Decodes the payload of one frame, without its length header.
encode_payload
Appends the Postcard encoding of message to buffer and returns it.