Package org.lwjgl.glfw
Interface GLFWDeallocateCallbackI
-
- All Superinterfaces:
org.lwjgl.system.CallbackI
,org.lwjgl.system.Pointer
- All Known Implementing Classes:
GLFWDeallocateCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface GLFWDeallocateCallbackI extends org.lwjgl.system.CallbackI
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 duringTerminate
after the library is no longer flagged as initialized.The block address will never be
NULL
. Deallocations ofNULL
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 (*
invoke(long, long)
) ( void *block, void *user )- Since:
- version 3.4
-
-
Field Summary
Fields Modifier and Type Field Description static org.lwjgl.system.libffi.FFICIF
CIF
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
callback(long ret, long args)
default org.lwjgl.system.libffi.FFICIF
getCallInterface()
void
invoke(long block, long user)
Will be called for memory deallocation requests.
-
-
-
Method Detail
-
getCallInterface
default org.lwjgl.system.libffi.FFICIF getCallInterface()
- Specified by:
getCallInterface
in interfaceorg.lwjgl.system.CallbackI
-
callback
default void callback(long ret, long args)
- Specified by:
callback
in interfaceorg.lwjgl.system.CallbackI
-
invoke
void invoke(long block, long user)
Will be called for memory deallocation requests.- Parameters:
block
- the address of the memory block to deallocateuser
- the user-defined pointer from the allocator
-
-