Skip to main content

Module constants

Module constants 

Source
Expand description

Zstandard format constants, tables, and symbol coding definitions.

Ported from the zstd C library by Meta Platforms, Inc. Original source: lib/common/zstd_internal.h, decompress/zstd_decompress_internal.h Licensed under BSD and GPLv2 (dual license). See LICENSE-ZSTD.

Constants§

BLOCK_TYPE_COMPRESSED
BLOCK_TYPE_RAW
BLOCK_TYPE_RLE
LIT_TYPE_COMPRESSED
LIT_TYPE_RAW
LIT_TYPE_RLE
LIT_TYPE_TREELESS
LL_BASE
Base value for each literal length code.
LL_BITS
Extra bits for each literal length code.
LL_DEFAULT_NORM
Default normalized count for literal length FSE table.
LL_DEFAULT_NORM_LOG
LL_FSE_LOG
MAX_LL
MAX_ML
MAX_OFF
ML_BASE
Base value for each match length code.
ML_BITS
Extra bits for each match length code.
ML_DEFAULT_NORM
Default normalized count for match length FSE table.
ML_DEFAULT_NORM_LOG
ML_FSE_LOG
OFF_FSE_LOG
OF_BITS
Extra bits for each offset code. offset_code = OF_bits[code].
OF_DEFAULT_NORM
Default normalized count for offset FSE table.
OF_DEFAULT_NORM_LOG
SEQ_MODE_FSE
SEQ_MODE_PREDEFINED
SEQ_MODE_REPEAT
SEQ_MODE_RLE
ZSTD_BLOCKSIZELOG_MAX
ZSTD_BLOCKSIZE_MAX
ZSTD_MAGIC
ZSTD_MINMATCH
ZSTD_WINDOWLOG_MAX

Functions§

ll_code
Convert a literal length value to its code. Ported from ZSTD_LLcode() in zstd_compress_internal.h.
ml_code
Convert a match length base (matchLength - 3) to its code. Ported from ZSTD_MLcode() in zstd_compress_internal.h.
off_code
Convert an offset value to its code (highest bit position + 1).