private Context(AlphabetSize alphabetSize, Func <int, T> bitsToSymbol, Func <T, int> symbolToBits, int skippedComplexCodeLengths) { this.AlphabetSize = alphabetSize; this.BitsToSymbol = bitsToSymbol; this.SymbolToBits = symbolToBits; this.SkippedComplexCodeLengths = skippedComplexCodeLengths; }
public RunDecider(List <byte> symbolLengths, AlphabetSize alphabetSize) { this.symbolLengths = symbolLengths; this.AlphabetSize = alphabetSize; this.TrimmedSymbolCount = symbolLengths.Count; }
public Context(AlphabetSize alphabetSize, Func <int, T> bitsToSymbol, Func <T, int> symbolToBits) : this(alphabetSize, bitsToSymbol, symbolToBits, -1) { }