public void UpdateState(ref FseBitReader reader) { FseDecompressTable dInfo = Table[State]; uint lowBits = reader.ReadBits(dInfo.NumberOfBits); State = (int)(dInfo.NewState + lowBits); }
public byte DecodeSymbol(ref FseBitReader reader) { FseDecompressTable dInfo = Table[State]; uint lowBits = reader.ReadBits(dInfo.NumberOfBits); State = (int)(dInfo.NewState + lowBits); return(dInfo.Symbol); }