mirror of
https://github.com/chylex/Brotli-Builder.git
synced 2024-12-22 07:42:47 +01:00
25 lines
771 B
C#
25 lines
771 B
C#
using System.Collections.Generic;
|
|
using BrotliLib.Serialization;
|
|
using BrotliLib.Serialization.Reader;
|
|
|
|
namespace BrotliLib.Collections.Huffman{
|
|
partial class HuffmanNode<T>{
|
|
/// <summary>
|
|
/// Dummy node used as a workaround for leaking Huffman tree generation.
|
|
/// </summary>
|
|
public sealed class Dummy : HuffmanNode<T>{
|
|
public override T LookupValue(IBitReader bits){
|
|
return default!;
|
|
}
|
|
|
|
protected override IEnumerable<KeyValuePair<T, BitStream>> ListValues(BitStream prefix){
|
|
yield break;
|
|
}
|
|
|
|
protected override IEnumerable<KeyValuePair<T, BitPath>> ListValues(BitPath prefix){
|
|
yield break;
|
|
}
|
|
}
|
|
}
|
|
}
|