@Override
    public ByteBuffer allocate(int size) {
        return createDirectByteBuffer(size);
    }
Allocates and destroys direct byte buffers using native code.

@author pavl_g.
jme3-android/src/main/java/com/jme3/util/AndroidNativeBufferAllocator.java