Expand description
Codec for encoding and decoding Pulse frames.
This module provides MessagePack-based serialization with length-prefixed framing.
Structs§
- Frame
Codec - Codec for streaming frame encoding/decoding.
Enums§
- Protocol
Error - 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.