using System.Runtime.InteropServices;
namespace SabreTools.Models.Compression.LZ
{
///
/// Format of first 14 byte of LZ compressed file
///
///
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public sealed class FileHeaader
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
public string? Magic;
public byte CompressionType;
[MarshalAs(UnmanagedType.U1)]
public char LastChar;
public uint RealLength;
}
}