mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-18 20:23:05 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
35 lines
841 B
C#
35 lines
841 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.CHD
|
|
{
|
|
/// <see href="https://github.com/mamedev/mame/blob/master/src/lib/util/chd.h"/>
|
|
[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;
|
|
}
|
|
}
|