Module codec

Module codec 

Source
Expand description

Codec for encoding and decoding Pulse frames.

This module provides MessagePack-based serialization with length-prefixed framing.

Structs§

FrameCodec
Codec for streaming frame encoding/decoding.

Enums§

ProtocolError
Protocol errors that can occur during encoding/decoding.

Constants§

LENGTH_PREFIX_SIZE
Length prefix size in bytes.
MAX_FRAME_SIZE
Maximum frame size (16 MiB).

Functions§

decode
Decode a frame from bytes.
decode_from
Try to decode a frame from a buffer, advancing it if successful.
encode
Encode a frame to bytes.
encode_into
Encode a frame into an existing buffer.