Interface MemoryUtil.MemoryAllocator

All Known Implementing Classes:
JEmallocAllocator, RPmallocAllocator
Enclosing class:
MemoryUtil

public static interface MemoryUtil.MemoryAllocator
The interface implemented by the memory allocator used by the explicit memory management API (MemoryUtil.memAlloc(int), MemoryUtil.memFree(Buffer), etc).
  • Method Details

    • getMalloc

      long getMalloc()
      Returns a pointer to the malloc function.
    • getCalloc

      long getCalloc()
      Returns a pointer to the calloc function.
    • getRealloc

      long getRealloc()
      Returns a pointer to the realloc function.
    • getFree

      long getFree()
      Returns a pointer to the free function.
    • getAlignedAlloc

      long getAlignedAlloc()
      Returns a pointer to the aligned_alloc function.
    • getAlignedFree

      long getAlignedFree()
      Returns a pointer to the aligned_free function.
    • malloc

      long malloc(long size)
    • calloc

      long calloc(long num, long size)
    • realloc

      long realloc(long ptr, long size)
    • free

      void free(long ptr)
    • aligned_alloc

      long aligned_alloc(long alignment, long size)
    • aligned_free

      void aligned_free(long ptr)