Skip to main content

Module codec

Module codec 

Source
Expand description

LibParcel-1.0 envelope codec; raw DEFLATE body, CRC-32 of the raw payload.

Structsยง

Codec
Validated parcel codec; construct with Codec::new and reuse across calls.
CodecConfig
Builder-style configuration for Codec; optional fields fall back to SPEC defaults.
DecodeMeta
Metadata returned alongside the decoded payload.
DecodedParcel
Decoded parcel: the recovered payload bytes plus envelope metadata.

Constantsยง

CHECKSUM_LEN ๐Ÿ”’
DEFAULT_MAX_DECODED_BODY
Default cap on the size of the base64-decoded body.
DEFAULT_MAX_ENCODED_LEN
Default cap on the total length of the encoded string.
DEFAULT_MAX_PAYLOAD_BYTES
Default cap on the size of the raw payload after inflate.
FIELD_SEPARATOR ๐Ÿ”’
FIELD_SEPARATOR_LEN ๐Ÿ”’
LABEL_WIDTH ๐Ÿ”’
PREVIEW_BYTES ๐Ÿ”’
READ_CHUNK ๐Ÿ”’

Functionsยง

compress_raw_deflate ๐Ÿ”’
decompress_raw_deflate ๐Ÿ”’
format_inspect ๐Ÿ”’
hex_nibble ๐Ÿ”’
is_valid_content_type ๐Ÿ”’