Class ChdMetadataEntry
Represents a single metadata entry from a CHD file header (e.g. game name, disc label, hardware info).
public record ChdMetadataEntry : IEquatable<ChdMetadataEntry>
- Inheritance
-
ChdMetadataEntry
- Implements
- Inherited Members
Constructors
ChdMetadataEntry(string, byte[])
Represents a single metadata entry from a CHD file header (e.g. game name, disc label, hardware info).
public ChdMetadataEntry(string Tag, byte[] Data)
Parameters
TagstringFour-character tag identifying the metadata type (e.g. "GAME", "DISC", "HARD").
Databyte[]The raw metadata payload bytes. May be ASCII text or binary data.
Properties
Data
The raw metadata payload bytes. May be ASCII text or binary data.
public byte[] Data { get; init; }
Property Value
- byte[]
Flags
Metadata flags from the entry header (the top byte of the stored length field).
Bit 0 (CHD_MDFLAGS_CHECKSUM) indicates the entry is covered by the
combined-SHA1 verification in Chd.CheckFile.
public byte Flags { get; init; }
Property Value
IsText
true if Data appears to be printable ASCII text.
public bool IsText { get; }
Property Value
Tag
Four-character tag identifying the metadata type (e.g. "GAME", "DISC", "HARD").
public string Tag { get; init; }
Property Value
Methods
Equals(ChdMetadataEntry?)
public virtual bool Equals(ChdMetadataEntry? other)
Parameters
otherChdMetadataEntry
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetText()
Returns the ASCII text representation of the metadata data, if applicable.
public string GetText()
Returns
ToString()
Returns a human-readable representation: tag plus text or byte count.
public override string ToString()