BufferUtils.toInt

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

  1. int toInt(ByteBuffer buffer)
  2. int toInt(ByteBuffer buffer, int position, int length)
    class BufferUtils
    static
    int
    toInt

Meta