code: protected IntBuffer createIntBuffer(int size) {
        ByteBuffer temp = ByteBuffer.allocateDirect(4 * size);
        temp.order(ByteOrder.nativeOrder());
  
        return temp.asIntBuffer();
      }
docs: Creates an integer buffer to hold specified ints
  - strictly a utility method
  
  @param size how many int to contain
  @return created IntBuffer