Class ChdHeaders
- Namespace
- CHDSharp
- Assembly
- CHDSharpLib.dll
Parses and validates CHD V1-V5 file headers, reading compression configuration, block maps, checksums, and metadata pointers from the stream.
public static class ChdHeaders
- Inheritance
-
ChdHeaders
- Inherited Members
Methods
ReadHeaderV5(Stream, out ChdHeader)
Reads and parses a V5 CHD header from the stream, including the compressed or uncompressed block map.
public static ChdError ReadHeaderV5(Stream file, out ChdHeader chd)
Parameters
fileStreamThe stream positioned immediately after the CHD magic and version fields.
chdChdHeaderWhen this method returns, contains the parsed header data.
Returns
- ChdError
Chderrnone on success; otherwise an error code if the map is corrupt.