Skip to content

Constants ​

The lzma2 package exposes constants governing chunk sizes, dictionary boundaries, and versioning.


Chunk & Dictionary Limits ​

ConstantValueDescription
CHUNK_UNPACK_MAX2097152 (2 MiB)Maximum uncompressed payload per LZMA2 chunk
CHUNK_PACK_MAX65536 (64 KiB)Maximum compressed payload per LZMA2 chunk
MIN_DICT_SIZE4096 (4 KiB)Minimum supported dictionary size
DEFAULT_DICT_SIZE8388608 (8 MiB)Default dictionary size for compression & decompression
MAX_DICT_SIZE268435456 (256 MiB)Maximum supported dictionary size

Control Bytes ​

ConstantValueDescription
CONTROL_EOS0x00End-of-stream indicator byte
CONTROL_UNCOMPRESSED_RESET_DICT0x01Uncompressed copy chunk with dictionary reset
CONTROL_UNCOMPRESSED_NO_RESET0x02Uncompressed copy chunk without dictionary reset
CONTROL_LZMA_MIN0x80Minimum control byte value for compressed LZMA chunk

Package Information ​

ConstantValueDescription
version"0.0.1"Library version string

Released under the MIT License.