Structs§
- Binary
Flags - Flags describing frame properties.
- Binary
Frame - Binary frame format:
[magic:2][version:1][flags:1][channel:1][sequence:4][payload:var] - Compression
Config - Compression options for encoding/decoding.
- Compression
Dictionary - Pre-trained zstd dictionary with a numeric ID.
Enums§
- Binary
Error - Payload
Encoding - Encoding used for the payload body.
Constants§
- MAGIC_
HEADER - Magic bytes prefixing every binary frame (“RP”).
- VERSION_
BYTE - Version byte for future evolution.
Functions§
- decode_
frame - Decode a frame without any pre-shared dictionaries.
- decode_
frame_ with_ dictionaries - Decode a frame using a set of pre-shared dictionaries.
- encode_
frame - Encode without compression using the default settings.
- encode_
frame_ with_ compression - Encode with optional per-frame compression.
- train_
dictionary - Train a zstd dictionary from samples.