mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +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.
51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.BDPlus
|
|
{
|
|
/// <see href="https://github.com/mwgoldsmith/bdplus/blob/master/src/libbdplus/bdsvm/loader.c"/>
|
|
public sealed class SVM
|
|
{
|
|
/// <summary>
|
|
/// "BDSVM_CC"
|
|
/// </summary>
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
|
|
public string Signature = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Unknown data
|
|
/// </summary>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
|
|
public byte[] Unknown1 = new byte[5];
|
|
|
|
/// <summary>
|
|
/// Version year
|
|
/// </summary>
|
|
public ushort Year;
|
|
|
|
/// <summary>
|
|
/// Version month
|
|
/// </summary>
|
|
public byte Month;
|
|
|
|
/// <summary>
|
|
/// Version day
|
|
/// </summary>
|
|
public byte Day;
|
|
|
|
/// <summary>
|
|
/// Unknown data
|
|
/// </summary>
|
|
public uint Unknown2;
|
|
|
|
/// <summary>
|
|
/// Length
|
|
/// </summary>
|
|
public uint Length;
|
|
|
|
/// <summary>
|
|
/// <see cref="Length"> bytes of data
|
|
/// </summary>
|
|
public byte[] Data { get; set; } = [];
|
|
}
|
|
}
|