Package org.lwjgl.system.jemalloc
Interface ChunkAllocI
-
- All Superinterfaces:
- CallbackI, CallbackI.P, Pointer
- All Known Implementing Classes:
- ChunkAlloc
@FunctionalInterface public interface ChunkAllocI extends CallbackI.P
Instances of this interface may be set to theChunkHooks
struct.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
CallbackI.B, CallbackI.D, CallbackI.F, CallbackI.I, CallbackI.J, CallbackI.P, CallbackI.S, CallbackI.V, CallbackI.Z
-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method and Description default long
address()
Returns the raw pointer address as along
value.default long
callback(long args)
Will be called by native code.long
invoke(long new_addr, long size, long alignment, long zero, long commit, int arena_ind)
Chunk allocation hook.
-
-
-
Method Detail
-
address
default long address()
Description copied from interface:Pointer
Returns the raw pointer address as along
value.
-
callback
default long callback(long args)
Description copied from interface:CallbackI.P
Will be called by native code.- Specified by:
callback
in interfaceCallbackI.P
- Parameters:
args
- pointer to aDCArgs
iterator- Returns:
- the value to store to the result
DCValue
-
invoke
long invoke(long new_addr, long size, long alignment, long zero, long commit, int arena_ind)
Chunk allocation hook.- Parameters:
new_addr
-size
-alignment
-zero
-commit
-arena_ind
-
-
-