Convert buffer to an integer. Parses up to the first non-numeric character. If no number is found an
IllegalArgumentException is thrown
@param buffer A buffer containing an integer in flush mode. The position is not changed.
@param position the position in the buffer to start reading from
@param length the length of the buffer to use for conversion
@return an int of the buffer bytes
Convert buffer to an integer. Parses up to the first non-numeric character. If no number is found an IllegalArgumentException is thrown
@param buffer A buffer containing an integer in flush mode. The position is not changed. @param position the position in the buffer to start reading from @param length the length of the buffer to use for conversion @return an int of the buffer bytes