2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.LZ
|
2025-09-26 10:57:15 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Additional information stored after the KWAJ header
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <see href="https://www.cabextract.org.uk/libmspack/doc/szdd_kwaj_format.html"/>
|
|
|
|
|
public sealed class KWAJHeaderExtensions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Decompressed length of file
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint? DecompressedLength { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Unknown purpose
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort? UnknownPurpose { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-10-30 20:44:16 -04:00
|
|
|
/// Length of <see cref="UnknownData"/>
|
2025-09-26 10:57:15 -04:00
|
|
|
/// </summary>
|
|
|
|
|
public ushort? UnknownDataLength { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Unknown purpose data whose length is defined
|
|
|
|
|
/// by <see cref="UnknownDataLength"/>
|
|
|
|
|
/// </summary>
|
2025-10-30 22:03:22 -04:00
|
|
|
public byte[]? UnknownData { get; set; }
|
2025-09-26 10:57:15 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Null-terminated string with max length 8: file name
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? FileName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Null-terminated string with max length 3: file extension
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? FileExtension { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-10-30 20:44:16 -04:00
|
|
|
/// Length of <see cref="ArbitraryText"/>
|
2025-09-26 10:57:15 -04:00
|
|
|
/// </summary>
|
|
|
|
|
public ushort? ArbitraryTextLength { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Arbitrary text data whose length is defined
|
|
|
|
|
/// by <see cref="ArbitraryTextLength"/>
|
|
|
|
|
/// </summary>
|
2025-10-30 22:03:22 -04:00
|
|
|
public byte[]? ArbitraryText { get; set; }
|
2025-09-26 10:57:15 -04:00
|
|
|
}
|
2025-10-30 20:44:16 -04:00
|
|
|
}
|