Package com.jme3.util

Class AndroidNativeBufferAllocator

  • All Implemented Interfaces:
    com.jme3.util.BufferAllocator

    public final class AndroidNativeBufferAllocator
    extends java.lang.Object
    implements com.jme3.util.BufferAllocator
    Allocates and destroys direct byte buffers using native code.
    Author:
    pavl_g.
    • Constructor Detail

      • AndroidNativeBufferAllocator

        public AndroidNativeBufferAllocator()
    • Method Detail

      • destroyDirectBuffer

        public void destroyDirectBuffer​(java.nio.Buffer toBeDestroyed)
        Specified by:
        destroyDirectBuffer in interface com.jme3.util.BufferAllocator
      • allocate

        public java.nio.ByteBuffer allocate​(int size)
        Specified by:
        allocate in interface com.jme3.util.BufferAllocator