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.
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.PFF
|
|
{
|
|
/// <summary>
|
|
/// PFF archive header
|
|
/// </summary>
|
|
/// <remarks>Versions 2, 3, and 4 supported</remarks>
|
|
/// <see href="https://devilsclaws.net/download/file-pff-new-bz2"/>
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
public sealed class Header
|
|
{
|
|
/// <summary>
|
|
/// Size of the following header
|
|
/// </summary>
|
|
public uint HeaderSize;
|
|
|
|
/// <summary>
|
|
/// Signature
|
|
/// </summary>
|
|
/// <remarks>Versions 2 and 3 share the same signature but different header sizes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)]
|
|
public string Signature = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Number of files
|
|
/// </summary>
|
|
public uint NumberOfFiles;
|
|
|
|
/// <summary>
|
|
/// File segment size
|
|
/// </summary>
|
|
public uint FileSegmentSize;
|
|
|
|
/// <summary>
|
|
/// File list offset
|
|
/// </summary>
|
|
public uint FileListOffset;
|
|
}
|
|
}
|