protected final int rawGet(boolean discard)
    {
        int pos;
        if (hasRemaining())
        {
            if (discard)
            {
                mark = position;
                marked = 1;
            }
            else
            {
                marked++;
            }
            pos = position;
            position = (position+1) % capacity;
            remaining--;
            updated();
            return pos;
        }
        else
        {
            throw new BufferUnderflowException();
        }
    }
protected final int rawGet ( boolean discard ) { int pos ; if ( hasRemaining ( ) ) { if ( discard ) { mark = position ; marked = 1 ; } else { marked ++ ; } pos = position ; position = ( position + 1 ) % capacity ; remaining -- ; updated ( ) ; return pos ; } else { throw new BufferUnderflowException ( ) ; } }
Returns the current position and increments it. If discard == true the
bytes before position are discarded.
<p>This method is a support for concrete subclasses get method.
@param discard
@return