|
ZXC 1.0.3
High-performance asymmetric lossless compression library
|
Header specific to General (LZ-based) compression blocks. More...
#include <zxc_internal.h>
Data Fields | |
| uint32_t | n_sequences |
| The total count of LZ sequences in the block. | |
| uint32_t | n_literals |
| The total count of literal bytes. | |
| uint8_t | enc_lit |
| Encoding method used for the literal stream. | |
| uint8_t | enc_tok |
| SPL only: encoding of the token section, whose bytes each pack a literal length and a match length nibble. | |
| uint8_t | enc_mlen |
| Reserved, written 0 and ignored on decode. | |
| uint8_t | enc_off |
| SPL only: width of the offset stream (1 = 1-byte, 0 = 2-byte). | |
Header specific to General (LZ-based) compression blocks.
This header follows the main block header when the block type is SPL/PAK. It describes the layout of sequences and literals.
Definition at line 1313 of file zxc_internal.h.
| uint8_t zxc_gnr_header_t::enc_lit |
Encoding method used for the literal stream.
Definition at line 1316 of file zxc_internal.h.
Referenced by zxc_decode_block_pak_impl(), and zxc_decode_block_spl_impl().
| uint8_t zxc_gnr_header_t::enc_mlen |
Reserved, written 0 and ignored on decode.
Match lengths have no stream of their own: they share the token byte and spill into the extras.
Definition at line 1318 of file zxc_internal.h.
| uint8_t zxc_gnr_header_t::enc_off |
SPL only: width of the offset stream (1 = 1-byte, 0 = 2-byte).
PAK has no offset stream, so it writes 0 and ignores the field on decode.
Definition at line 1319 of file zxc_internal.h.
Referenced by zxc_decode_block_spl_impl().
| uint8_t zxc_gnr_header_t::enc_tok |
SPL only: encoding of the token section, whose bytes each pack a literal length and a match length nibble.
Only RAW and HUFFMAN (level 7) occur.
Definition at line 1317 of file zxc_internal.h.
Referenced by zxc_decode_block_pak_impl(), and zxc_decode_block_spl_impl().
| uint32_t zxc_gnr_header_t::n_literals |
The total count of literal bytes.
Definition at line 1315 of file zxc_internal.h.
Referenced by zxc_decode_block_pak_impl(), and zxc_decode_block_spl_impl().
| uint32_t zxc_gnr_header_t::n_sequences |
The total count of LZ sequences in the block.
Definition at line 1314 of file zxc_internal.h.
Referenced by zxc_decode_block_pak_impl(), and zxc_decode_block_spl_impl().