Class ChdHashResult
Hashes of one contiguous region of a CHD's decompressed content.
public sealed record ChdHashResult : IEquatable<ChdHashResult>
- Inheritance
-
ChdHashResult
- Implements
- Inherited Members
Constructors
ChdHashResult(int?, ulong, long, byte[]?, byte[]?, uint?, ulong?)
Hashes of one contiguous region of a CHD's decompressed content.
public ChdHashResult(int? TrackNumber, ulong StartOffset, long Length, byte[]? Sha1, byte[]? Sha256, uint? Crc32, ulong? Xxh3)
Parameters
TrackNumberint?The 1-based CD track number for per-track hashing, or
nullfor the whole image.StartOffsetulongByte offset of the region within the decompressed image.
LengthlongLength of the region in bytes.
Sha1byte[]SHA-1 of the region, or
nullif not requested.Sha256byte[]SHA-256 of the region, or
nullif not requested.Crc32uint?CRC-32 of the region, or
nullif not requested.Xxh3ulong?XXH3-64 of the region, or
nullif not requested.
Properties
Crc32
CRC-32 of the region, or null if not requested.
public uint? Crc32 { get; init; }
Property Value
- uint?
Length
Length of the region in bytes.
public long Length { get; init; }
Property Value
Sha1
SHA-1 of the region, or null if not requested.
public byte[]? Sha1 { get; init; }
Property Value
- byte[]
Sha256
SHA-256 of the region, or null if not requested.
public byte[]? Sha256 { get; init; }
Property Value
- byte[]
StartOffset
Byte offset of the region within the decompressed image.
public ulong StartOffset { get; init; }
Property Value
TrackNumber
The 1-based CD track number for per-track hashing, or null for the whole image.
public int? TrackNumber { get; init; }
Property Value
- int?
Xxh3
XXH3-64 of the region, or null if not requested.
public ulong? Xxh3 { get; init; }
Property Value
Methods
ToHex(ChdHashType)
Formats a hex string for one of the hashes, or null when unavailable.
public string? ToHex(ChdHashType type)
Parameters
typeChdHashType