private static boolean isDirect(Buffer buf) {
        return buf.isDirect();
    }
Test whether the specified buffer is direct.

@param buf the buffer to test (not null, unaffected)
@return true if direct, otherwise false
jme3-core/src/main/java/com/jme3/util/BufferUtils.java