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 CompressedMapEntryV5
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Compression type
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte Compression;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Compressed length
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Actually UInt24</remarks>
|
|
|
|
|
public uint CompLength;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Actually UInt48</remarks>
|
|
|
|
|
public ulong Offset;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// CRC-16 of the data
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort CRC;
|
|
|
|
|
}
|
|
|
|
|
}
|