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 theChunkHooksstruct.
-
-
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 longaddress()Returns the raw pointer address as alongvalue.default longcallback(long args)Will be called by native code.longinvoke(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:PointerReturns the raw pointer address as alongvalue.
-
callback
default long callback(long args)
Description copied from interface:CallbackI.PWill be called by native code.- Specified by:
callbackin interfaceCallbackI.P- Parameters:
args- pointer to aDCArgsiterator- 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-
-
-