Package org.lwjgl.system.rpmalloc
Class RPmallocAllocator
- java.lang.Object
-
- org.lwjgl.system.rpmalloc.RPmallocAllocator
-
- All Implemented Interfaces:
- org.lwjgl.system.MemoryUtil.MemoryAllocator
public class RPmallocAllocator extends java.lang.Object implements org.lwjgl.system.MemoryUtil.MemoryAllocatorAMemoryUtil.MemoryAllocatorimplementation using the rpmalloc library.
-
-
Constructor Summary
Constructors Constructor and Description RPmallocAllocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description longaligned_alloc(long alignment, long size)Called byMemoryUtil.memAlignedAlloc(int, int).voidaligned_free(long ptr)Called byMemoryUtil.memAlignedFree(java.nio.ByteBuffer).longcalloc(long num, long size)Called byMemoryUtil.memCalloc(int, int).voidfree(long ptr)Called byMemoryUtil.memFree(java.nio.Buffer).longgetAlignedAlloc()Returns a pointer to the aligned_alloc function.longgetAlignedFree()Returns a pointer to the aligned_free function.longgetCalloc()Returns a pointer to the calloc function.longgetFree()Returns a pointer to the free function.longgetMalloc()Returns a pointer to the malloc function.longgetRealloc()Returns a pointer to the realloc function.longmalloc(long size)Called byMemoryUtil.memAlloc(int).longrealloc(long ptr, long size)Called byMemoryUtil.memRealloc(java.nio.ByteBuffer, int).
-
-
-
Method Detail
-
getMalloc
public long getMalloc()
Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorReturns a pointer to the malloc function.- Specified by:
getMallocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getCalloc
public long getCalloc()
Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorReturns a pointer to the calloc function.- Specified by:
getCallocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getRealloc
public long getRealloc()
Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorReturns a pointer to the realloc function.- Specified by:
getReallocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getFree
public long getFree()
Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorReturns a pointer to the free function.- Specified by:
getFreein interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getAlignedAlloc
public long getAlignedAlloc()
Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorReturns a pointer to the aligned_alloc function.- Specified by:
getAlignedAllocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getAlignedFree
public long getAlignedFree()
Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorReturns a pointer to the aligned_free function.- Specified by:
getAlignedFreein interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
malloc
public long malloc(long size)
Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorCalled byMemoryUtil.memAlloc(int).- Specified by:
mallocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
calloc
public long calloc(long num, long size)Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorCalled byMemoryUtil.memCalloc(int, int).- Specified by:
callocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
realloc
public long realloc(long ptr, long size)Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorCalled byMemoryUtil.memRealloc(java.nio.ByteBuffer, int).- Specified by:
reallocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
free
public void free(long ptr)
Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorCalled byMemoryUtil.memFree(java.nio.Buffer).- Specified by:
freein interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
aligned_alloc
public long aligned_alloc(long alignment, long size)Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorCalled byMemoryUtil.memAlignedAlloc(int, int).- Specified by:
aligned_allocin interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
aligned_free
public void aligned_free(long ptr)
Description copied from interface:org.lwjgl.system.MemoryUtil.MemoryAllocatorCalled byMemoryUtil.memAlignedFree(java.nio.ByteBuffer).- Specified by:
aligned_freein interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
-