Enum MapEntryFlag

Namespace
CHDSharp.Models
Assembly
CHDSharpLib.dll

Flags describing the type and properties of a hunk map entry.

[Flags]
public enum MapEntryFlag

Fields

EnumMember = 8

Internal flag used for mask calculation.

Mapentryflagnocrc = 16

Indicates no CRC is present for this entry.

Mapentryflagtypemask = Mapentrytypecompressed | Mapentrytype2Ndcompressed | EnumMember

Mask to isolate the hunk type from a map entry.

Mapentrytype2Ndcompressed = Mapentrytypeuncompressed | Mapentrytypeselfhunk

Secondary compressed hunk (V3/V4): compressed with the secondary algorithm, typically FLAC for CDDA audio.

Mapentrytypecompressed = 1

Standard compressed hunk.

Mapentrytypeinvalid = 0

Invalid or uninitialized entry.

Mapentrytypemini = Mapentrytypecompressed | Mapentrytypeuncompressed

Mini hunk: the offset field stores the raw data inline.

Mapentrytypeparenthunk = Mapentrytypecompressed | Mapentrytypeselfhunk

Parent reference: same data as a hunk in the parent CHD.

Mapentrytypeselfhunk = 4

Self-reference: same data as another hunk in this file.

Mapentrytypeuncompressed = 2

Uncompressed (raw) hunk.