using System.Runtime.InteropServices;
namespace SabreTools.Data.Models.LZ
{
///
/// Standard LZ variant
///
///
///
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public sealed class SZDDHeader
{
///
/// "SZDD" signature
///
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
public byte[] Magic = new byte[8];
///
/// Compression mode
///
/// Only is supported
[MarshalAs(UnmanagedType.U1)]
public ExpandCompressionType CompressionType;
///
/// The character missing from the end of the filename
///
/// 0 means unknown
[MarshalAs(UnmanagedType.U1)]
public char LastChar;
///
/// The integer length of the file when unpacked
///
public uint RealLength;
}
}