Class RPMemoryUnmapCallback

java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.system.rpmalloc.RPMemoryUnmapCallback
All Implemented Interfaces:
AutoCloseable, CallbackI, NativeResource, Pointer, RPMemoryUnmapCallbackI

public abstract class RPMemoryUnmapCallback extends Callback implements RPMemoryUnmapCallbackI
Instances of this class may be set to the RPMallocConfig struct.

Type


 void (*RPMemoryUnmapCallbackI.invoke(long, long, long, boolean)) (
     void *address,
     size_t size,
     size_t offset,
     int release
 )
  • Method Details

    • create

      public static RPMemoryUnmapCallback create(long functionPointer)
      Creates a RPMemoryUnmapCallback instance from the specified function pointer.
      Returns:
      the new RPMemoryUnmapCallback
    • createSafe

      @Nullable public static RPMemoryUnmapCallback createSafe(long functionPointer)
      Like create, but returns null if functionPointer is NULL.
    • create

      public static RPMemoryUnmapCallback create(RPMemoryUnmapCallbackI instance)
      Creates a RPMemoryUnmapCallback instance that delegates to the specified RPMemoryUnmapCallbackI instance.