ZXC 0.15.0
High-performance asymmetric lossless compression library
Loading...
Searching...
No Matches
zxc_block_header_t Struct Reference

On-disk header structure for a ZXC block (8 bytes, little-endian). More...

#include <zxc_internal.h>

Data Fields

uint8_t block_type
 Block type (see zxc_block_type_t).
 
uint8_t block_flags
 Flags (e.g., checksum presence).
 
uint8_t reserved
 Reserved for future protocol extensions.
 
uint8_t header_checksum
 Header integrity checksum (1 byte).
 
uint32_t comp_size
 Compressed size excluding this header.
 

Detailed Description

On-disk header structure for a ZXC block (8 bytes, little-endian).

raw_size is not stored in the header; decoders derive it from Section Descriptors within the compressed payload.

Definition at line 2119 of file zxc_internal.h.

Field Documentation

◆ block_flags

uint8_t zxc_block_header_t::block_flags

Flags (e.g., checksum presence).

Definition at line 2121 of file zxc_internal.h.

Referenced by zxc_encode_block_raw().

◆ block_type

◆ comp_size

uint32_t zxc_block_header_t::comp_size

◆ header_checksum

uint8_t zxc_block_header_t::header_checksum

Header integrity checksum (1 byte).

Definition at line 2123 of file zxc_internal.h.

◆ reserved

uint8_t zxc_block_header_t::reserved

Reserved for future protocol extensions.

Definition at line 2122 of file zxc_internal.h.

Referenced by zxc_encode_block_raw().


The documentation for this struct was generated from the following file: