Package com.jme3.util

Class IosNativeBufferAllocator

java.lang.Object
com.jme3.util.IosNativeBufferAllocator
All Implemented Interfaces:
BufferAllocator

public final class IosNativeBufferAllocator extends Object implements BufferAllocator
Allocates and destroys direct byte buffers using native code.
  • Constructor Details

    • IosNativeBufferAllocator

      public IosNativeBufferAllocator()
  • Method Details

    • destroyDirectBuffer

      public void destroyDirectBuffer(Buffer toBeDestroyed)
      Description copied from interface: BufferAllocator
      De-allocate a direct buffer.
      Specified by:
      destroyDirectBuffer in interface BufferAllocator
      Parameters:
      toBeDestroyed - the buffer to de-allocate (not null)
    • allocate

      public ByteBuffer allocate(int size)
      Description copied from interface: BufferAllocator
      Allocate a direct ByteBuffer of the specified size.
      Specified by:
      allocate in interface BufferAllocator
      Parameters:
      size - in bytes (≥0)
      Returns:
      a new direct buffer