Files

37 lines
1.1 KiB
C#
Raw Permalink Normal View History

2025-09-26 13:06:18 -04:00
namespace SabreTools.Data.Models.PKZIP
2025-09-26 10:57:15 -04:00
{
/// <summary>
/// The following is the layout of the OS/2 attributes "extra"
/// block. (Last Revision 09/05/95)
///
2025-09-26 10:57:15 -04:00
/// 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"/>
2025-09-26 10:57:15 -04:00
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; } = [];
2025-09-26 10:57:15 -04:00
}
}