mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-02-17 21:48:30 +00:00
33 lines
784 B
C#
33 lines
784 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.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;
|
|
|
|
public uint Version;
|
|
|
|
public uint PreloadDirectoryEntryCount;
|
|
|
|
public uint DirectoryEntryCount;
|
|
|
|
public uint PreloadBytes;
|
|
|
|
public uint HeaderLength;
|
|
|
|
public uint DirectoryItemCount;
|
|
|
|
public uint DirectoryItemOffset;
|
|
|
|
public uint DirectoryItemLength;
|
|
}
|
|
}
|