2025-09-26 11:57:18 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.CHD
|
2025-09-26 11:57:18 -04:00
|
|
|
{
|
2025-10-30 21:27:37 -04:00
|
|
|
/// <see href="https://github.com/mamedev/mame/blob/master/src/lib/util/chd.h"/>
|
2025-09-26 11:57:18 -04:00
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public sealed class MapV3
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Starting offset within the file
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ulong StartingOffset;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 32-bit CRC of the uncompressed data
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint CRC32;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Lower 16 bits of length
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort LengthLo;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Upper 8 bits of length
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte LengthHi;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Flags, indicating compression info
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte Flags;
|
|
|
|
|
}
|
|
|
|
|
}
|