public static IntBuffer createIntBuffer(int... data) {
        if (data == null) {
            return null;
        }
        IntBuffer buff = createIntBuffer(data.length);
        buff.clear();
        buff.put(data);
        buff.flip();
        return buff;
    }
Generate a new IntBuffer using the given array of ints. The IntBuffer
will be data.length long and contain the int data as data[0], data[1]...
etc.

@param data
           array of ints to place into a new IntBuffer
@return a new direct, flipped IntBuffer, or null if data was null
jme3-core/src/main/java/com/jme3/util/BufferUtils.java