@Override
    public ByteBuffer allocate(int size) {
        return ByteBuffer.allocateDirect(size);
    }
Allocate a direct ByteBuffer of the specified size.

@param size in bytes (&ge;0)
@return a new direct buffer
jme3-core/src/main/java/com/jme3/util/PrimitiveAllocator.java