mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-10 16:23:10 +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.
33 lines
803 B
C#
33 lines
803 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.XZP
|
|
{
|
|
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/XZPFile.h"/>
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
public sealed class Header
|
|
{
|
|
/// <summary>
|
|
/// "piZx"
|
|
/// </summary>
|
|
/// <remarks>4 bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)]
|
|
public string Signature = string.Empty;
|
|
|
|
public uint Version;
|
|
|
|
public uint PreloadDirectoryEntryCount;
|
|
|
|
public uint DirectoryEntryCount;
|
|
|
|
public uint PreloadBytes;
|
|
|
|
public uint HeaderLength;
|
|
|
|
public uint DirectoryItemCount;
|
|
|
|
public uint DirectoryItemOffset;
|
|
|
|
public uint DirectoryItemLength;
|
|
}
|
|
}
|