Files
SabreTools.Serialization/SabreTools.Data.Models/PKZIP/OS2ExtraField.cs
Matt Nadareski 7689c6dd07 Libraries
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.
2026-03-21 16:26:56 -04:00

37 lines
1.1 KiB
C#

namespace SabreTools.Data.Models.PKZIP
{
/// <summary>
/// The following is the layout of the OS/2 attributes "extra"
/// block. (Last Revision 09/05/95)
///
/// The OS/2 extended attribute structure (FEA2LIST) is
/// compressed and then stored in its entirety within this
/// structure. There will only ever be one "block" of data in
/// VarFields[].
/// </summary>
/// <remarks>Header ID = 0x0009</remarks>
/// <see href="https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT"/>
public class OS2ExtraField : ExtensibleDataField
{
/// <summary>
/// Uncompressed Block Size
/// </summary>
public uint UncompressedBlockSize { get; set; }
/// <summary>
/// Compression type
/// </summary>
public ushort CompressionType { get; set; }
/// <summary>
/// CRC value for uncompress block
/// </summary>
public uint CRC32 { get; set; }
/// <summary>
/// Compressed block
/// </summary>
public byte[] Data { get; set; } = [];
}
}