private void ensureCapacity(int capacity) {
        if (capacity <= buffer.capacity()) {
            return;
        }

        ByteBuffer resized = BufferUtils.createByteBuffer(mathRoundPoT(capacity));

        resized.put(buffer);
        resized.clear();

        buffer = resized;
        address = memAddress(resized);
    }
Returns the {@link ByteBuffer} that backs this {@link APIBuffer}.
jme3-lwjgl3/src/main/java/com/jme3/lwjgl3/utils/APIBuffer.java