pub struct HeaderV4 {}
Expand description
A CHD V4 header. The major difference between a V3 header and V4 header is the absence of MD5 hash information in CHD V4.
While all members of this struct are public, prefer the Header
API over the fields
of this struct.
Fields§
§version: Version
The CHD version (4).
length: u32
The length of the header.
flags: u32
CHD file flags.
compression: u32
The compression codec used in the CHD file. See CodecType
for the
valid codec types supported by this library.
total_hunks: u32
The total number of hunks in the CHD file.
logical_bytes: u64
The logical size of the compressed data in bytes.
meta_offset: u64
The offset in the stream where the CHD metadata section begins.
hunk_bytes: u32
The size of each hunk in the CHD file in bytes.
sha1: [u8; 20]
The SHA1 hash of the CHD file.
parent_sha1: [u8; 20]
The SHA1 hash of the parent CHD file.
raw_sha1: [u8; 20]
The SHA1 hash of the raw, uncompressed data.
unit_bytes: u32
The size of each unit in bytes.
unit_count: u64
The number of units in each hunk.