Interface ExtentAllocI
-
- All Superinterfaces:
org.lwjgl.system.CallbackI,org.lwjgl.system.CallbackI.P,org.lwjgl.system.Pointer
- All Known Implementing Classes:
ExtentAlloc
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ExtentAllocI extends org.lwjgl.system.CallbackI.PInstances of this interface may be set to theExtentHooksstruct.Type
void * (*) ( extent_hooks_t *extent_hooks, void *new_addr, size_t size, size_t alignment, bool *zero, bool *commit, unsigned int arena_ind )
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
org.lwjgl.system.CallbackI.B, org.lwjgl.system.CallbackI.D, org.lwjgl.system.CallbackI.F, org.lwjgl.system.CallbackI.I, org.lwjgl.system.CallbackI.J, org.lwjgl.system.CallbackI.P, org.lwjgl.system.CallbackI.S, org.lwjgl.system.CallbackI.V, org.lwjgl.system.CallbackI.Z
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSIGNATURE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default longcallback(long args)default java.lang.StringgetSignature()longinvoke(long extent_hooks, long new_addr, long size, long alignment, long zero, long commit, int arena_ind)Extent allocation hook.
-
-
-
Field Detail
-
SIGNATURE
static final java.lang.String SIGNATURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSignature
default java.lang.String getSignature()
- Specified by:
getSignaturein interfaceorg.lwjgl.system.CallbackI
-
callback
default long callback(long args)
- Specified by:
callbackin interfaceorg.lwjgl.system.CallbackI.P
-
invoke
long invoke(long extent_hooks, long new_addr, long size, long alignment, long zero, long commit, int arena_ind)Extent allocation hook.An extent allocation function conforms to the
extent_alloc_ttype and upon success returns a pointer tosizebytes of mapped memory on behalf of arenaarena_indsuch that the extent's base address is a multiple ofalignment, as well as setting*zeroto indicate whether the extent is zeroed and*committo indicate whether the extent is committed. Upon error the function returnsNULLand leaves*zeroand*commitunmodified. Thesizeparameter is always a multiple of the page size. Thealignmentparameter is always a power of two at least as large as the page size. Zeroing is mandatory if*zerois true upon function entry. Committing is mandatory if*commitis true upon function entry. Ifnew_addris notNULL, the returned pointer must benew_addron success orNULLon error. Committed memory may be committed in absolute terms as on a system that does not overcommit, or in implicit terms as on a system that overcommits and satisfies physical memory needs on demand via soft page faults. Note that replacing the default extent allocation function makes the arena'sarena.i.dsssetting irrelevant.
-
-