code: public int getInt(int index)
      {
          checkPositionIndexes(index, index + SIZE_OF_INT, this.length);
          index += offset;
          return (data[index] & 0xff) |
                  (data[index + 1] & 0xff) << 8 |
                  (data[index + 2] & 0xff) << 16 |
                  (data[index + 3] & 0xff) << 24;
      }
docs: Gets a 32-bit integer at the specified absolute {@code index} in
  this buffer.
  
  @throws IndexOutOfBoundsException if the specified {@code index} is less than {@code 0} or
  {@code index + 4} is greater than {@code this.capacity}