2023-09-04 00:12:49 -04:00
|
|
|
namespace SabreTools.Models.Compression.MSZIP
|
2023-09-04 00:11:04 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Compression with dynamic Huffman codes (BTYPE=10)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <see href="https://www.rfc-editor.org/rfc/rfc1951"/>
|
|
|
|
|
public class DynamicHuffmanCompressedBlockHeader
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Huffman code lengths for the literal / length alphabet
|
|
|
|
|
/// </summary>
|
2023-09-04 21:14:41 -04:00
|
|
|
#if NET48
|
2023-09-04 00:11:04 -04:00
|
|
|
public int[] LiteralLengths;
|
2023-09-04 21:14:41 -04:00
|
|
|
#else
|
|
|
|
|
public int[]? LiteralLengths;
|
|
|
|
|
#endif
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Huffman distance codes for the literal / length alphabet
|
|
|
|
|
/// </summary>
|
2023-09-04 21:14:41 -04:00
|
|
|
#if NET48
|
2023-09-04 00:11:04 -04:00
|
|
|
public int[] DistanceCodes;
|
2023-09-04 21:14:41 -04:00
|
|
|
#else
|
|
|
|
|
public int[]? DistanceCodes;
|
|
|
|
|
#endif
|
2023-09-04 00:11:04 -04:00
|
|
|
}
|
|
|
|
|
}
|