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.
void (*invoke) (
void *block,
void *user
)
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static GLFWDeallocateCallback | Returns: the newGLFWDeallocateCallbackCreates a |
| public static GLFWDeallocateCallback | create(GLFWDeallocateCallbackI instance)
Creates a |
| public static GLFWDeallocateCallback |
| GLFWDeallocateCallback | back to summary |
|---|---|
| protected GLFWDeallocateCallback() | |
| GLFWDeallocateCallback | back to summary |
|---|---|
| pack-priv GLFWDeallocateCallback(long functionPointer) | |
| create | back to summary |
|---|---|
| public static GLFWDeallocateCallback create(long functionPointer) Creates a
| |
| create | back to summary |
|---|---|
| public static GLFWDeallocateCallback create(GLFWDeallocateCallbackI instance) Creates a | |
| createSafe | back to summary |
|---|---|
| public static GLFWDeallocateCallback createSafe(long functionPointer) Like
| |
| Modifier and Type | Field and Description |
|---|---|
| private final GLFWDeallocateCallbackI |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | invoke(long
the address of the memory block to deallocate block, long the user-defined pointer from the allocator user)Implements org. |
| delegate | back to summary |
|---|---|
| private final GLFWDeallocateCallbackI delegate | |
| Container | back to summary |
|---|---|
| pack-priv Container(long functionPointer, GLFWDeallocateCallbackI delegate) | |
| invoke | back to summary |
|---|---|
| public void invoke(long block, long user) Implements org. Doc from org. Will be called for memory deallocation requests.
| |