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); }
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; }