|
ZXC 1.0.3
High-performance asymmetric lossless compression library
|
What a frame's header and footer declare, read without decoding. More...
#include <zxc_buffer.h>
Data Fields | |
| uint64_t | decompressed_size |
| Source bytes the frame decodes to. | |
| uint64_t | compressed_size |
| Compressed bytes of the frame, footer included. | |
| uint64_t | digest |
Archive digest; 0 when has_checksum is 0. | |
| size_t | block_size |
| Block size, 4 KB to 2 MB. | |
| uint32_t | dict_id |
| Dictionary ID; 0 is none or ID 0, see zxc_requires_dict(). | |
| uint8_t | format_version |
| Format version of the frame. | |
| uint8_t | has_checksum |
| 1 when blocks carry checksums and the footer a digest. | |
| uint8_t | has_seek_table |
| 1 when a seek table precedes the footer. | |
What a frame's header and footer declare, read without decoding.
Filled by zxc_get_frame_info(), zxc_get_last_frame_info() and their FILE* twins; pass them sizeof(zxc_frame_info_t). Fields are only ever added at the end: zero the struct first to read the ones this library does not know as 0.
Definition at line 275 of file zxc_buffer.h.
| size_t zxc_frame_info_t::block_size |
Block size, 4 KB to 2 MB.
Definition at line 279 of file zxc_buffer.h.
Referenced by zxc_inplace_probe(), zxc_read_frame_info(), zxc_scan_container(), and zxc_seek_parse_frame().
| uint64_t zxc_frame_info_t::compressed_size |
Compressed bytes of the frame, footer included.
Definition at line 277 of file zxc_buffer.h.
Referenced by zxc_read_frame_info().
| uint64_t zxc_frame_info_t::decompressed_size |
Source bytes the frame decodes to.
Definition at line 276 of file zxc_buffer.h.
Referenced by zxc_inplace_probe(), zxc_read_frame_info(), zxc_scan_container(), and zxc_seek_parse_frame().
| uint32_t zxc_frame_info_t::dict_id |
Dictionary ID; 0 is none or ID 0, see zxc_requires_dict().
Definition at line 280 of file zxc_buffer.h.
Referenced by zxc_read_frame_info(), and zxc_seek_parse_frame().
| uint64_t zxc_frame_info_t::digest |
Archive digest; 0 when has_checksum is 0.
Definition at line 278 of file zxc_buffer.h.
Referenced by zxc_read_frame_info().
| uint8_t zxc_frame_info_t::format_version |
Format version of the frame.
Definition at line 281 of file zxc_buffer.h.
Referenced by zxc_read_frame_info().
| uint8_t zxc_frame_info_t::has_checksum |
1 when blocks carry checksums and the footer a digest.
Definition at line 282 of file zxc_buffer.h.
Referenced by zxc_inplace_probe(), zxc_read_frame_info(), and zxc_seek_parse_frame().
| uint8_t zxc_frame_info_t::has_seek_table |
1 when a seek table precedes the footer.
Definition at line 283 of file zxc_buffer.h.
Referenced by zxc_inplace_probe(), zxc_read_frame_info(), and zxc_seek_parse_frame().