Namespace CHDSharp.Models
Classes
- ChdCodecState
Holds per-codec state and scratch buffers used across multiple hunk decompressions, avoiding repeated allocations.
- ChdHashComputeResult
Result of a ComputeHashesWithReporting(string, ChdHashType, string?, bool, IProgress<ChdProgress>?, CancellationToken) operation, consolidating error code and hash results.
- ChdHashResult
Hashes of one contiguous region of a CHD's decompressed content.
- ChdHeader
Represents the fully parsed header of a CHD file including compression codecs, block map, checksums, and metadata offsets.
- ChdHeaderInfo
Snapshot of a CHD file header, parsed without opening the file for hunk reads (libchdr
chd_read_headerparity). Returned by ReadHeader(string, out ChdHeaderInfo?) and its overloads.
- ChdMetadataEntry
Represents a single metadata entry from a CHD file header (e.g. game name, disc label, hardware info).
- ChdProgress
Progress snapshot reported by long-running CHD operations. Pass an IProgress<T> of this type to CheckFile(Stream, string, bool, IProgress<ChdProgress>?, CancellationToken) , CheckFileWithParent(string, string?, IProgress<ChdProgress>?, CancellationToken) , ReadAllBytes(out byte[], IProgress<ChdProgress>?, CancellationToken) , EnumerateHunks(IProgress<ChdProgress>?), or ExtractToDirectory(string, string, IProgress<ChdProgress>?, CancellationToken, bool) to receive a report after every decompressed hunk. Callers commonly wrap this in
new Progress<ChdProgress>(...)>for UI binding or logging.
- ChdResult
Result of a CHD verification or validation operation, consolidating error code, version, and hashes.
- ChdTrackInfo
Represents a single track in a CD/GD-ROM CHD image, including type, size, pregap/postgap, and frame offset information.
- CueMatchResult
The result of matching a CUE sheet against a known hash (CHDlite
match_cueparity).
- DiscPlatformInfo
The result of DiscDetector: detected platform plus optional title and manufacturer (product) ID extracted from the disc's filesystem.
- ExtractResult
Represents the result of an ChdFile extraction to a directory, including per-track reporting for CD/GD-ROM images.
- MapEntry
Represents a single entry in the CHD block map, describing compression type, location, length, and caching state for one hunk.
- TrackExtractResult
Represents the result of extracting a single track from a CD/GD-ROM CHD image.
Enums
- ChdCodec
Identifies the compression codec used in a CHD file.
- ChdError
Error codes returned by CHD operations.
- ChdHashType
Hash algorithms that ComputeHashes(string, ChdHashType, string?, bool, IProgress<ChdProgress>?, CancellationToken) can compute over CHD content.
- ChdSubType
CD-ROM subcode types. Matches MAME cdrom.h CD_SUB_* values.
- ChdTrackType
CD-ROM track types. Matches MAME cdrom.h CD_TRACK_* values.
- CompressionType
Represents the compression type for a hunk in the V5 CHD format.
- CueStyle
CUE sheet output styles (CHDlite
CueStyleparity).
- DiscPlatform
Disc game platforms detected by DiscDetector (CHDlite
GamePlatformparity,detect_game_platform.cpp).
- MapEntryFlag
Flags describing the type and properties of a hunk map entry.