Expand description
Level parameters: the settings each level runs with, and how the input
size and Options adjust them.
Structs§
- LdmParams
- Parameters for Long Distance Matching.
- Level
Params - Compression parameters for a specific level.
- Options
- Options for large-window and LDM compression, orthogonal to level.
Enums§
- Strategy
- Match-finding strategy.
Constants§
- DEFAULT_
LEVEL - Default compression level used when level 0 is requested.
- HASH_
LOG_ MAX - Largest hash or chain log.
- HASH_
LOG_ MIN - Smallest hash or chain log, a 64-entry table.
- MAX_
LEVEL - Highest compression level.
- MIN_
LEVEL - Lowest compression level. Level -8, a separate level in earlier versions, is still accepted and runs as -7.
- WINDOW_
LOG_ MAX - Largest window log, a 128 MiB window.
- WINDOW_
LOG_ MIN - Smallest window log, a 1 KiB window.
Functions§
- apply_
options - Applies
optstoparams: the window log, clamped toWINDOW_LOG_MIN..=WINDOW_LOG_MAX, and with LDM on, a 2^27-byte window unless set andLdmParamssized for the window. - level_
params - Returns the compression parameters for a given level, or
Noneif out of range. - level_
params_ for_ size - Returns the compression parameters for a given level, sized for
src_len.