2023-09-04 00:12:49 -04:00
|
|
|
namespace SabreTools.Models.PFF
|
2023-09-04 00:11:04 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PFF archive header
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Versions 2, 3, and 4 supported</remarks>
|
|
|
|
|
/// <see href="https://devilsclaws.net/download/file-pff-new-bz2"/>
|
|
|
|
|
public sealed class Header
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Size of the following header
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
public uint HeaderSize { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Signature
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Versions 2 and 3 share the same signature but different header sizes</remarks>
|
2023-09-10 21:24:10 -04:00
|
|
|
public string? Signature { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Number of files
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
public uint NumberOfFiles { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// File segment size
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
public uint FileSegmentSize { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// File list offset
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
public uint FileListOffset { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
}
|
|
|
|
|
}
|