mirror of
https://github.com/SabreTools/SabreTools.Compression.git
synced 2026-07-20 07:45:07 +00:00
31 lines
706 B
C#
31 lines
706 B
C#
namespace SabreTools.Compression.MSZIP
|
|
{
|
|
/// <summary>
|
|
/// Represents a single node in a Huffman tree
|
|
/// </summary>
|
|
public class HuffmanNode
|
|
{
|
|
/// <summary>
|
|
/// Left child of the current node
|
|
/// </summary>
|
|
#if NET48
|
|
public HuffmanNode Left { get; set; }
|
|
#else
|
|
public HuffmanNode? Left { get; set; }
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Right child of the current node
|
|
/// </summary>
|
|
#if NET48
|
|
public HuffmanNode Right { get; set; }
|
|
#else
|
|
public HuffmanNode? Right { get; set; }
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Value of the current node
|
|
/// </summary>
|
|
public int Value { get; set; }
|
|
}
|
|
} |