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

public abstract Class ExtentSplit

extends Callback
implements ExtentSplitI
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.jemalloc.ExtentSplitI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.system.jemalloc.ExtentSplit.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,
    size_t size_a,
    size_t size_b,
    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
ExtentSplit(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static ExtentSplit

Returns:

the new ExtentSplit
create
(long functionPointer)

Creates a ExtentSplit instance from the specified function pointer.

public static ExtentSplit
create(ExtentSplitI instance)

Creates a ExtentSplit instance that delegates to the specified ExtentSplitI instance.

public static ExtentSplit
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

ExtentSplitback to summary
protected ExtentSplit()
ExtentSplitback to summary
pack-priv ExtentSplit(long functionPointer)

Method Detail

createback to summary
public static ExtentSplit create(long functionPointer)

Creates a ExtentSplit instance from the specified function pointer.

Returns:ExtentSplit

the new ExtentSplit

createback to summary
public static ExtentSplit create(ExtentSplitI instance)

Creates a ExtentSplit instance that delegates to the specified ExtentSplitI instance.

createSafeback to summary
public static ExtentSplit createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class ExtentSplit.Container

extends ExtentSplit
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ExtentSplitI

Constructor Summary

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

Method Summary

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

Implements org.lwjgl.system.jemalloc.ExtentSplitI.invoke.

Extent split hook.
Inherited from org.lwjgl.system.jemalloc.ExtentSplit:
createcreatecreateSafe

Field Detail

delegateback to summary
private final ExtentSplitI delegate

Constructor Detail

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

Method Detail

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

Implements org.lwjgl.system.jemalloc.ExtentSplitI.invoke.

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

Extent split hook.

An extent split function conforms to the extent_split_t type and optionally splits an extent at given addr and size into two adjacent extents, the first of size_a bytes, and the second of size_b bytes, operating on committed/decommitted memory as indicated, on behalf of arena arena_ind, returning false upon success. If the function returns true, this indicates that the extent remains unsplit and therefore should continue to be operated on as a whole.

Annotations
@Override