ZXC 1.0.3
High-performance asymmetric lossless compression library
Loading...
Searching...
No Matches
File Format Constants

On-disk byte sizes of the archive header and footer. More...

Macros

#define ZXC_MAGIC_WORD   0x9CB02EF5U
 Magic word opening every frame, stored little-endian (F5 2E B0 9C).
#define ZXC_FILE_HEADER_SIZE   16
 File header size: Magic(4) + Version(1) + Chunk(1) + Flags(1) + Reserved(7) + Checksum(2).
#define ZXC_FILE_FOOTER_MIN_SIZE   3
 Smallest file footer: original_size(1) + compressed_size(1) + lengths(1).
#define ZXC_FILE_FOOTER_MAX_SIZE   17
 Largest file footer, digest excluded: original_size(8) + compressed_size(8) + lengths(1).
#define ZXC_FILE_DIGEST_SIZE   8
 Archive digest, opening the footer when the header sets HAS_CHECKSUM.

Detailed Description

On-disk byte sizes of the archive header and footer.

Macro Definition Documentation

◆ ZXC_FILE_DIGEST_SIZE

#define ZXC_FILE_DIGEST_SIZE   8

Archive digest, opening the footer when the header sets HAS_CHECKSUM.

Definition at line 127 of file zxc_constants.h.

Referenced by zxc_footer_layout(), and zxc_read_frame_info().

◆ ZXC_FILE_FOOTER_MAX_SIZE

#define ZXC_FILE_FOOTER_MAX_SIZE   17

Largest file footer, digest excluded: original_size(8) + compressed_size(8) + lengths(1).

Definition at line 125 of file zxc_constants.h.

◆ ZXC_FILE_FOOTER_MIN_SIZE

#define ZXC_FILE_FOOTER_MIN_SIZE   3

Smallest file footer: original_size(1) + compressed_size(1) + lengths(1).

Definition at line 122 of file zxc_constants.h.

Referenced by zxc_parse_file_footer().

◆ ZXC_FILE_HEADER_SIZE

◆ ZXC_MAGIC_WORD

#define ZXC_MAGIC_WORD   0x9CB02EF5U

Magic word opening every frame, stored little-endian (F5 2E B0 9C).

Definition at line 117 of file zxc_constants.h.

Referenced by zxc_get_dict_id(), zxc_magic_prefix_ok(), zxc_read_file_header(), zxc_stream_decompress(), and zxc_write_file_header().