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

file Stream

The stream positioned immediately after the CHD magic and version fields.

chd ChdHeader

When this method returns, contains the parsed header data.

Returns

ChdError

Chderrnone on success; otherwise an error code if the map is corrupt.