ZXC 0.15.0
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 115 of file zxc_constants.h.

◆ 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 113 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 110 of file zxc_constants.h.

◆ ZXC_FILE_HEADER_SIZE

#define ZXC_FILE_HEADER_SIZE   16

File header size: Magic(4) + Version(1) + Chunk(1) + Flags(1) + Reserved(7) + Checksum(2).

Definition at line 108 of file zxc_constants.h.

◆ ZXC_MAGIC_WORD

#define ZXC_MAGIC_WORD   0x9CB02EF5U

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

Definition at line 105 of file zxc_constants.h.