Skip to main content

Module codec

Module codec 

Source
Expand description

Bounded, explicit wire codecs. Encoding and compression have independent IDs.

Structsยง

Cursor ๐Ÿ”’
Dictionary ๐Ÿ”’
PayloadDecoder ๐Ÿ”’
Scratch state for synchronous decoding of one sample blockโ€™s columns. The caller reserves decoded column memory before allocating this output buffer. A stream owns one decoder and reuses it for every block it reads; no buffer or context is shared with another stream or retained in a cache.

Enumsยง

Compression ๐Ÿ”’

Constantsยง

COLUMN_LIMIT ๐Ÿ”’
COLUMN_STORED_LIMIT ๐Ÿ”’
DICTIONARY ๐Ÿ”’
INTEGER ๐Ÿ”’
MODERN_FRAME_MAGIC ๐Ÿ”’
The magic number every modern zstd frame starts with, little-endian.
RELEASED_OUTPUT_BYTES ๐Ÿ”’
Output scratch a released decoder keeps: the next block of the same stream reuses the allocation instead of growing a new one.

Functionsยง

checksum ๐Ÿ”’
compress ๐Ÿ”’
decode_dictionary ๐Ÿ”’
decode_integers ๐Ÿ”’
decompress ๐Ÿ”’
encode_dictionary ๐Ÿ”’
encode_integers ๐Ÿ”’
put_string ๐Ÿ”’
put_u32 ๐Ÿ”’
put_u64 ๐Ÿ”’
put_varint ๐Ÿ”’