Package org.lwjgl.system.jemalloc
Class JEmallocAllocator
java.lang.Object
org.lwjgl.system.jemalloc.JEmallocAllocator
- All Implemented Interfaces:
org.lwjgl.system.MemoryUtil.MemoryAllocator
public class JEmallocAllocator
extends Object
implements org.lwjgl.system.MemoryUtil.MemoryAllocator
A
MemoryUtil.MemoryAllocator implementation using the jemalloc library.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongaligned_alloc(long alignment, long size) voidaligned_free(long ptr) longcalloc(long num, long size) voidfree(long ptr) longlonglonglonggetFree()longlonglongmalloc(long size) longrealloc(long ptr, long size)
-
Constructor Details
-
JEmallocAllocator
public JEmallocAllocator()
-
-
Method Details
-
getMalloc
public long getMalloc()- Specified by:
getMallocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getCalloc
public long getCalloc()- Specified by:
getCallocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getRealloc
public long getRealloc()- Specified by:
getReallocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getFree
public long getFree()- Specified by:
getFreein interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getAlignedAlloc
public long getAlignedAlloc()- Specified by:
getAlignedAllocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getAlignedFree
public long getAlignedFree()- Specified by:
getAlignedFreein interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
malloc
public long malloc(long size) - Specified by:
mallocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
calloc
public long calloc(long num, long size) - Specified by:
callocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
realloc
public long realloc(long ptr, long size) - Specified by:
reallocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
free
public void free(long ptr) - Specified by:
freein interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
aligned_alloc
public long aligned_alloc(long alignment, long size) - Specified by:
aligned_allocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
aligned_free
public void aligned_free(long ptr) - Specified by:
aligned_freein interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-