|
ZXC 0.15.0
High-performance asymmetric lossless compression library
|
Constants for pre-trained dictionary support. More...
Macros | |
| #define | ZXC_DICT_SIZE_MAX ((1U << 16) - 1U) |
| Maximum dictionary content size in bytes (64 KB - 1). | |
| #define | ZXC_DICT_MAGIC 0x9CB0D1C7U |
| Magic word opening a .zxd dictionary file, stored little-endian (C7 D1 B0 9C). | |
| #define | ZXC_DICT_HEADER_SIZE 16 |
| Size of the .zxd dictionary file header in bytes. | |
| #define | ZXC_HUF_TABLE_SIZE 128 |
| Size of a packed literal Huffman code-lengths table (256 symbols, 4 bits each): the shared table in a .zxd file, and internally the per-block lengths header. | |
Constants for pre-trained dictionary support.
| #define ZXC_DICT_HEADER_SIZE 16 |
Size of the .zxd dictionary file header in bytes.
Definition at line 81 of file zxc_constants.h.
| #define ZXC_DICT_MAGIC 0x9CB0D1C7U |
Magic word opening a .zxd dictionary file, stored little-endian (C7 D1 B0 9C).
Definition at line 79 of file zxc_constants.h.
| #define ZXC_DICT_SIZE_MAX ((1U << 16) - 1U) |
Maximum dictionary content size in bytes (64 KB - 1).
16-bit for two reasons that happen to cap at the same 65535: the .zxd header stores the content size in a 16-bit field, and LZ77 match offsets are 16-bit (max distance 65535).
Definition at line 77 of file zxc_constants.h.
| #define ZXC_HUF_TABLE_SIZE 128 |
Size of a packed literal Huffman code-lengths table (256 symbols, 4 bits each): the shared table in a .zxd file, and internally the per-block lengths header.
See zxc_train_dict_huf() / zxc_dict_huf().
Definition at line 85 of file zxc_constants.h.