BKSystem.IO.BitStream.UpdateIndicesForRead C# (CSharp) Метод

UpdateIndicesForRead() приватный Метод

Updates the internal buffer's bit indices after reading to the current stream by the specified number of bits.
.
/// The internal buffer's bit index is greater than 32. ///
private UpdateIndicesForRead ( uint bits ) : void
bits uint /// An value defining the specified /// number of bits. ///
Результат void
        private void UpdateIndicesForRead(uint bits)
        {
            // Increment _uiBitBuffer_BitIndex
            _uiBitBuffer_BitIndex += bits;
            if(_uiBitBuffer_BitIndex == BitBuffer_SizeOfElement)
            {
                // Increment _uiBitBuffer_Index
                _uiBitBuffer_Index++;

                // Reset the bit index
                _uiBitBuffer_BitIndex = 0;
            }
            else if(_uiBitBuffer_BitIndex > BitBuffer_SizeOfElement)
                throw new InvalidOperationException(BitStreamResources.GetString("InvalidOperation_BitIndexGreaterThan32"));
        }