Example #1
0
        public uint NextSymbol(BitStream bitStream)
        {
            uint symbol = _buffer[bitStream.Peek(_numBits)];

            // We may have over-read, reset bitstream position
            bitStream.Consume((int)_lengths[symbol]);

            return(symbol);
        }
Example #2
0
        public uint NextSymbol(BitStream bitStream)
        {
            uint symbol = _buffer[bitStream.Peek(_numBits)];

            // We may have over-read, reset bitstream position
            bitStream.Consume((int)_lengths[symbol]);

            return symbol;
        }