Package com.jme3.util

Class LWJGLSaferAllocMemoryAllocator

java.lang.Object
com.jme3.util.LWJGLSaferAllocMemoryAllocator
All Implemented Interfaces:
org.lwjgl.system.MemoryUtil.MemoryAllocator

public final class LWJGLSaferAllocMemoryAllocator extends Object implements org.lwjgl.system.MemoryUtil.MemoryAllocator
  • Field Details

  • Constructor Details

    • LWJGLSaferAllocMemoryAllocator

      public LWJGLSaferAllocMemoryAllocator()
  • Method Details

    • isAvailable

      public static boolean isAvailable()
    • getMalloc

      public long getMalloc()
      Specified by:
      getMalloc in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • getCalloc

      public long getCalloc()
      Specified by:
      getCalloc in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • getRealloc

      public long getRealloc()
      Specified by:
      getRealloc in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • getFree

      public long getFree()
      Specified by:
      getFree in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • getAlignedAlloc

      public long getAlignedAlloc()
      Specified by:
      getAlignedAlloc in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • getAlignedFree

      public long getAlignedFree()
      Specified by:
      getAlignedFree in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • malloc

      public long malloc(long size)
      Specified by:
      malloc in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • calloc

      public long calloc(long num, long size)
      Specified by:
      calloc in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • realloc

      public long realloc(long ptr, long size)
      Specified by:
      realloc in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • free

      public void free(long ptr)
      Specified by:
      free in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • aligned_alloc

      public long aligned_alloc(long alignment, long size)
      Specified by:
      aligned_alloc in interface org.lwjgl.system.MemoryUtil.MemoryAllocator
    • aligned_free

      public void aligned_free(long ptr)
      Specified by:
      aligned_free in interface org.lwjgl.system.MemoryUtil.MemoryAllocator