Class GLFWDeallocateCallback

java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.glfw.GLFWDeallocateCallback
All Implemented Interfaces:
AutoCloseable, GLFWDeallocateCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public abstract class GLFWDeallocateCallback extends org.lwjgl.system.Callback implements GLFWDeallocateCallbackI
The function pointer type for memory deallocation callbacks.

This is the function pointer type for memory deallocation callbacks. A memory deallocation callback function has the following signature:


 void function_name(void* block, void* user)

This function may deallocate the specified memory block. This memory block will have been allocated with the same allocator.

This function may be called during Init but before the library is flagged as initialized, as well as during Terminate after the library is no longer flagged as initialized.

The block address will never be NULL. Deallocations of NULL are filtered out before reaching the custom allocator.

Note
  • The specified memory block will not be accessed by GLFW after this function is called.
  • This function should not call any GLFW function.
  • This function may be called from any thread that calls GLFW functions.

Type


 void (*GLFWDeallocateCallbackI.invoke(long, long)) (
     void *block,
     void *user
 )
Since:
version 3.4
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields inherited from interface org.lwjgl.glfw.GLFWDeallocateCallbackI

    CIF

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Method Summary

    Modifier and Type
    Method
    Description
    create(long functionPointer)
    Creates a GLFWDeallocateCallback instance from the specified function pointer.
    Creates a GLFWDeallocateCallback instance that delegates to the specified GLFWDeallocateCallbackI instance.
    createSafe(long functionPointer)
    Like create, but returns null if functionPointer is NULL.

    Methods inherited from class org.lwjgl.system.Callback

    address, equals, free, free, get, getSafe, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.CallbackI

    address

    Methods inherited from interface org.lwjgl.glfw.GLFWDeallocateCallbackI

    callback, getCallInterface, invoke

    Methods inherited from interface org.lwjgl.system.NativeResource

    close
  • Method Details

    • create

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

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

      public static GLFWDeallocateCallback create(GLFWDeallocateCallbackI instance)
      Creates a GLFWDeallocateCallback instance that delegates to the specified GLFWDeallocateCallbackI instance.