Top Description Inners Constructors Methods
org.lwjgl.system.jemalloc

public abstract Class ExtentDestroy

extends Callback
implements ExtentDestroyI
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.jemalloc.ExtentDestroyI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.system.jemalloc.ExtentDestroy.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be set to the ExtentHooks struct.

Type


bool (*invoke) (
    extent_hooks_t *extent_hooks,
    void *addr,
    size_t size,
    bool committed,
    unsigned int arena_ind
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static ExtentDestroy

Returns:

the new ExtentDestroy
create
(long functionPointer)

Creates a ExtentDestroy instance from the specified function pointer.

public static ExtentDestroy
create(ExtentDestroyI instance)

Creates a ExtentDestroy instance that delegates to the specified ExtentDestroyI instance.

public static ExtentDestroy
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

ExtentDestroyback to summary
protected ExtentDestroy()
ExtentDestroyback to summary
pack-priv ExtentDestroy(long functionPointer)

Method Detail

createback to summary
public static ExtentDestroy create(long functionPointer)

Creates a ExtentDestroy instance from the specified function pointer.

Returns:ExtentDestroy

the new ExtentDestroy

createback to summary
public static ExtentDestroy create(ExtentDestroyI instance)

Creates a ExtentDestroy instance that delegates to the specified ExtentDestroyI instance.

createSafeback to summary
public static ExtentDestroy createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.system.jemalloc back to summary

private final Class ExtentDestroy.Container

extends ExtentDestroy
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ExtentDestroyI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public boolean
invoke(long extent_hooks, long addr, long size, boolean committed, int arena_ind)

Implements org.lwjgl.system.jemalloc.ExtentDestroyI.invoke.

Extent destruction hook.
Inherited from org.lwjgl.system.jemalloc.ExtentDestroy:
createcreatecreateSafe

Field Detail

delegateback to summary
private final ExtentDestroyI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public boolean invoke(long extent_hooks, long addr, long size, boolean committed, int arena_ind)

Implements org.lwjgl.system.jemalloc.ExtentDestroyI.invoke.

Doc from org.lwjgl.system.jemalloc.ExtentDestroyI.invoke.

Extent destruction hook.

An extent destruction function conforms to the extent_destroy_t type and unconditionally destroys an extent at given addr and size with committed/decommited memory as indicated, on behalf of arena arena_ind. This function may be called to destroy retained extents during arena destruction (see arena.i.destroy).

Annotations
@Override