Files
SabreTools.Serialization/SabreTools.Data.Models/LZ/QBasicHeader.cs

24 lines
677 B
C#
Raw Normal View History

2025-09-26 10:57:15 -04:00
using System.Runtime.InteropServices;
2025-09-26 13:06:18 -04:00
namespace SabreTools.Data.Models.LZ
2025-09-26 10:57:15 -04:00
{
/// <summary>
/// LZ variant used in QBasic 4.5 installer
/// </summary>
/// <see href="https://www.cabextract.org.uk/libmspack/doc/szdd_kwaj_format.html"/>
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public sealed class QBasicHeader
{
/// <summary>
/// "SZ" signature
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
public byte[] Magic = new byte[8];
2025-09-26 10:57:15 -04:00
/// <summary>
/// The integer length of the file when unpacked
/// </summary>
public uint RealLength;
}
}