mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.LZ
|
|
{
|
|
/// <summary>
|
|
/// Standard LZ variant
|
|
/// </summary>
|
|
/// <see href="https://github.com/wine-mirror/wine/blob/master/dlls/kernel32/lzexpand.c"/>
|
|
/// <see href="https://www.cabextract.org.uk/libmspack/doc/szdd_kwaj_format.html"/>
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
public sealed class SZDDHeader
|
|
{
|
|
/// <summary>
|
|
/// "SZDD" signature
|
|
/// </summary>
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
|
|
public byte[] Magic = new byte[8];
|
|
|
|
/// <summary>
|
|
/// Compression mode
|
|
/// </summary>
|
|
/// <remarks>Only <see cref="ExpandCompressionType.A"/> is supported</remarks>
|
|
[MarshalAs(UnmanagedType.U1)]
|
|
public ExpandCompressionType CompressionType;
|
|
|
|
/// <summary>
|
|
/// The character missing from the end of the filename
|
|
/// </summary>
|
|
/// <remarks>0 means unknown</remarks>
|
|
[MarshalAs(UnmanagedType.U1)]
|
|
public char LastChar;
|
|
|
|
/// <summary>
|
|
/// The integer length of the file when unpacked
|
|
/// </summary>
|
|
public uint RealLength;
|
|
}
|
|
}
|