mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-10 16:23:10 +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.
28 lines
877 B
C#
28 lines
877 B
C#
namespace SabreTools.Data.Models.XZ
|
|
{
|
|
/// <summary>
|
|
/// Represents the pre-block data in the stream
|
|
/// </summary>
|
|
public class Header
|
|
{
|
|
/// <summary>
|
|
/// Header magic number (0xFD, '7', 'z', 'X', 'Z', 0x00)
|
|
/// </summary>
|
|
/// <remarks>6 bytes</remarks>
|
|
public byte[] Signature { get; set; } = new byte[6];
|
|
|
|
/// <summary>
|
|
/// The first byte of Stream Flags is always a null byte. In the
|
|
/// future, this byte may be used to indicate a new Stream version
|
|
/// or other Stream properties.
|
|
/// </summary>
|
|
public HeaderFlags Flags { get; set; }
|
|
|
|
/// <summary>
|
|
/// The CRC32 is calculated from the Stream Flags field. It is
|
|
/// stored as an unsigned 32-bit little endian integer.
|
|
/// </summary>
|
|
public uint Crc32 { get; set; }
|
|
}
|
|
}
|