Blast.Blast.ConsumeByte C# (CSharp) Method

ConsumeByte() private method

private ConsumeByte ( ) : byte
return byte
        private byte ConsumeByte()
        {
            if (this._inputBufferRemaining == 0)
            {
                DoReadBuffer();

                if (this._inputBufferRemaining == 0)
                {
                    throw new BlastException(BlastException.OutOfInputMessage);
                }
            }

            byte b = this._inputBuffer[this._inputBufferPos++];
            this._inputBufferRemaining--;

            return b;
        }