예제 #1
0
        public void UpdateState(ref FseBitReader reader)
        {
            FseDecompressTable dInfo = Table[State];
            uint lowBits             = reader.ReadBits(dInfo.NumberOfBits);

            State = (int)(dInfo.NewState + lowBits);
        }
예제 #2
0
        public byte DecodeSymbol(ref FseBitReader reader)
        {
            FseDecompressTable dInfo = Table[State];
            uint lowBits             = reader.ReadBits(dInfo.NumberOfBits);

            State = (int)(dInfo.NewState + lowBits);
            return(dInfo.Symbol);
        }