Skip to main content

Module header

Module header 

Source

Structs§

VhdxHeader
Parsed VHDX header (the active copy with highest valid sequence number).

Constants§

HEADER1_OFFSET
Offsets per MS-VHDX spec §2.1 — each block occupies a 64 KB slot within the first 1 MB of the file (the “header section”).
HEADER2_OFFSET
HEADER_SIGNATURE
HEADER_SIZE
REGION_TABLE1_OFFSET
REGION_TABLE2_OFFSET

Functions§

crc32c
parse_active_header
Select the active header from a raw byte slice covering both header copies. Returns the header with the highest sequence number whose CRC32C is valid.