Module: Omnizip::Algorithms::LZMA2Const

Overview

LZMA2 Format Constants (from XZ Utils specification)

Constant Summary collapse

CHUNK_MAX =

Maximum size of compressed data per chunk (excluding headers)

65536
UNCOMPRESSED_MAX =

Maximum size of uncompressed data per chunk Limited by 16-bit size field in LZMA2 header (stores size-1) Max value is 0xFFFF + 1 = 65536 bytes

65536
HEADER_MAX =

Maximum size of LZMA2 chunk header

6
HEADER_UNCOMPRESSED =

Size of uncompressed chunk header

3
CONTROL_END =

Control byte values

0x00
CONTROL_UNCOMPRESSED_RESET =

End of stream marker

0x01
CONTROL_UNCOMPRESSED =

Uncompressed with dict reset

0x02
CONTROL_LZMA_MIN =

Uncompressed without reset

0x80
FLAG_UNCOMPRESSED_SIZE =

Control byte flags (for LZMA chunks)

0x80
FLAG_RESET_STATE =

Base flag for LZMA chunks

0x20
FLAG_RESET_PROPERTIES =

Reset LZMA state

0x40
FLAG_RESET_DICT =

Reset properties + state

0x60
DICT_SIZE_MIN =

Dictionary size encoding constants

4096
DICT_SIZE_MAX =

4 KB minimum

0xFFFFFFFF