Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWDeallocateCallback

extends Callback
implements GLFWDeallocateCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.glfw.GLFWDeallocateCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.glfw.GLFWDeallocateCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

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

Type


void (*invoke) (
    void *block,
    void *user
)
Since
version 3.4

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
GLFWDeallocateCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static GLFWDeallocateCallback

Returns:

the new GLFWDeallocateCallback
create
(long functionPointer)

Creates a GLFWDeallocateCallback instance from the specified function pointer.

public static GLFWDeallocateCallback
create(GLFWDeallocateCallbackI instance)

Creates a GLFWDeallocateCallback instance that delegates to the specified GLFWDeallocateCallbackI instance.

public static GLFWDeallocateCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWDeallocateCallbackback to summary
protected GLFWDeallocateCallback()
GLFWDeallocateCallbackback to summary
pack-priv GLFWDeallocateCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWDeallocateCallback create(long functionPointer)

Creates a GLFWDeallocateCallback instance from the specified function pointer.

Returns:GLFWDeallocateCallback

the new GLFWDeallocateCallback

createback to summary
public static GLFWDeallocateCallback create(GLFWDeallocateCallbackI instance)

Creates a GLFWDeallocateCallback instance that delegates to the specified GLFWDeallocateCallbackI instance.

createSafeback to summary
public static GLFWDeallocateCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.glfw back to summary

private final Class GLFWDeallocateCallback.Container

extends GLFWDeallocateCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWDeallocateCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, GLFWDeallocateCallbackI delegate)

Method Summary

Modifier and TypeMethod 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.lwjgl.glfw.GLFWDeallocateCallbackI.invoke.

Will be called for memory deallocation requests.
Inherited from org.lwjgl.glfw.GLFWDeallocateCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final GLFWDeallocateCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, GLFWDeallocateCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(long block, long user)

Implements org.lwjgl.glfw.GLFWDeallocateCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWDeallocateCallbackI.invoke.

Will be called for memory deallocation requests.

Parameters
block:long

the address of the memory block to deallocate

user:long

the user-defined pointer from the allocator

Annotations
@Override