Package org.lwjgl.system.rpmalloc
Class RPmallocAllocator
java.lang.Object
org.lwjgl.system.rpmalloc.RPmallocAllocator
- All Implemented Interfaces:
MemoryUtil.MemoryAllocator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongaligned_alloc(long alignment, long size) Called byMemoryUtil.memAlignedAlloc(int, int).voidaligned_free(long ptr) longcalloc(long num, long size) Called byMemoryUtil.memCalloc(int, int).voidfree(long ptr) Called byMemoryUtil.memFree(java.nio.Buffer).longReturns a pointer to the aligned_alloc function.longReturns a pointer to the aligned_free function.longReturns a pointer to the calloc function.longgetFree()Returns a pointer to the free function.longReturns a pointer to the malloc function.longReturns a pointer to the realloc function.longmalloc(long size) Called byMemoryUtil.memAlloc(int).longrealloc(long ptr, long size)
-
Constructor Details
-
RPmallocAllocator
public RPmallocAllocator()
-
-
Method Details
-
getMalloc
public long getMalloc()Description copied from interface:MemoryUtil.MemoryAllocatorReturns a pointer to the malloc function.- Specified by:
getMallocin interfaceMemoryUtil.MemoryAllocator
-
getCalloc
public long getCalloc()Description copied from interface:MemoryUtil.MemoryAllocatorReturns a pointer to the calloc function.- Specified by:
getCallocin interfaceMemoryUtil.MemoryAllocator
-
getRealloc
public long getRealloc()Description copied from interface:MemoryUtil.MemoryAllocatorReturns a pointer to the realloc function.- Specified by:
getReallocin interfaceMemoryUtil.MemoryAllocator
-
getFree
public long getFree()Description copied from interface:MemoryUtil.MemoryAllocatorReturns a pointer to the free function.- Specified by:
getFreein interfaceMemoryUtil.MemoryAllocator
-
getAlignedAlloc
public long getAlignedAlloc()Description copied from interface:MemoryUtil.MemoryAllocatorReturns a pointer to the aligned_alloc function.- Specified by:
getAlignedAllocin interfaceMemoryUtil.MemoryAllocator
-
getAlignedFree
public long getAlignedFree()Description copied from interface:MemoryUtil.MemoryAllocatorReturns a pointer to the aligned_free function.- Specified by:
getAlignedFreein interfaceMemoryUtil.MemoryAllocator
-
malloc
public long malloc(long size) Description copied from interface:MemoryUtil.MemoryAllocatorCalled byMemoryUtil.memAlloc(int).- Specified by:
mallocin interfaceMemoryUtil.MemoryAllocator
-
calloc
public long calloc(long num, long size) Description copied from interface:MemoryUtil.MemoryAllocatorCalled byMemoryUtil.memCalloc(int, int).- Specified by:
callocin interfaceMemoryUtil.MemoryAllocator
-
realloc
public long realloc(long ptr, long size) Description copied from interface:MemoryUtil.MemoryAllocator- Specified by:
reallocin interfaceMemoryUtil.MemoryAllocator
-
free
public void free(long ptr) Description copied from interface:MemoryUtil.MemoryAllocatorCalled byMemoryUtil.memFree(java.nio.Buffer).- Specified by:
freein interfaceMemoryUtil.MemoryAllocator
-
aligned_alloc
public long aligned_alloc(long alignment, long size) Description copied from interface:MemoryUtil.MemoryAllocatorCalled byMemoryUtil.memAlignedAlloc(int, int).- Specified by:
aligned_allocin interfaceMemoryUtil.MemoryAllocator
-
aligned_free
public void aligned_free(long ptr) Description copied from interface:MemoryUtil.MemoryAllocator- Specified by:
aligned_freein interfaceMemoryUtil.MemoryAllocator
-