Package org.lwjgl.system.jemalloc
Class ExtentHooks
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct extent_hooks_t {
{@link ExtentAllocI extent_alloc_t} alloc;
{@link ExtentDallocI extent_dalloc_t} dalloc;
{@link ExtentDestroyI extent_destroy_t} destroy;
{@link ExtentCommitI extent_commit_t} commit;
{@link ExtentDecommitI extent_decommit_t} decommit;
{@link ExtentPurgeI extent_purge_t} purge_lazy;
{@link ExtentPurgeI extent_purge_t} purge_forced;
{@link ExtentSplitI extent_split_t} split;
{@link ExtentMergeI extent_merge_t} merge;
}-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionExtentHooks(ByteBuffer container) Creates aExtentHooksinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionalloc()alloc(ExtentAllocI value) Sets the specified value to theallocfield.static ExtentHookscalloc()Returns a newExtentHooksinstance allocated withmemCalloc.static ExtentHookscalloc(MemoryStack stack) Returns a newExtentHooksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExtentHooksDeprecated.static ExtentHookscallocStack(MemoryStack stack) Deprecated.@Nullable ExtentCommitcommit()commit(@Nullable ExtentCommitI value) Sets the specified value to thecommitfield.static ExtentHookscreate()Returns a newExtentHooksinstance allocated withBufferUtils.static ExtentHookscreate(long address) Returns a newExtentHooksinstance for the specified memory address.static @Nullable ExtentHookscreateSafe(long address) @Nullable ExtentDallocdalloc()dalloc(@Nullable ExtentDallocI value) Sets the specified value to thedallocfield.@Nullable ExtentDecommitdecommit()decommit(@Nullable ExtentDecommitI value) Sets the specified value to thedecommitfield.@Nullable ExtentDestroydestroy()destroy(@Nullable ExtentDestroyI value) Sets the specified value to thedestroyfield.static ExtentHooksmalloc()Returns a newExtentHooksinstance allocated withmemAlloc.static ExtentHooksmalloc(MemoryStack stack) Returns a newExtentHooksinstance allocated on the specifiedMemoryStack.static ExtentHooksDeprecated.static ExtentHooksmallocStack(MemoryStack stack) Deprecated.@Nullable ExtentMergemerge()merge(@Nullable ExtentMergeI value) Sets the specified value to themergefield.static ExtentAllocnalloc(long struct) Unsafe version ofalloc().static voidnalloc(long struct, ExtentAllocI value) Unsafe version ofalloc.static @Nullable ExtentCommitncommit(long struct) Unsafe version ofcommit().static voidncommit(long struct, @Nullable ExtentCommitI value) Unsafe version ofcommit.static @Nullable ExtentDallocndalloc(long struct) Unsafe version ofdalloc().static voidndalloc(long struct, @Nullable ExtentDallocI value) Unsafe version ofdalloc.static @Nullable ExtentDecommitndecommit(long struct) Unsafe version ofdecommit().static voidndecommit(long struct, @Nullable ExtentDecommitI value) Unsafe version ofdecommit.static @Nullable ExtentDestroyndestroy(long struct) Unsafe version ofdestroy().static voidndestroy(long struct, @Nullable ExtentDestroyI value) Unsafe version ofdestroy.static @Nullable ExtentMergenmerge(long struct) Unsafe version ofmerge().static voidnmerge(long struct, @Nullable ExtentMergeI value) Unsafe version ofmerge.static @Nullable ExtentPurgenpurge_forced(long struct) Unsafe version ofpurge_forced().static voidnpurge_forced(long struct, @Nullable ExtentPurgeI value) Unsafe version ofpurge_forced.static @Nullable ExtentPurgenpurge_lazy(long struct) Unsafe version ofpurge_lazy().static voidnpurge_lazy(long struct, @Nullable ExtentPurgeI value) Unsafe version ofpurge_lazy.static @Nullable ExtentSplitnsplit(long struct) Unsafe version ofsplit().static voidnsplit(long struct, @Nullable ExtentSplitI value) Unsafe version ofsplit.@Nullable ExtentPurgepurge_forced(@Nullable ExtentPurgeI value) Sets the specified value to thepurge_forcedfield.@Nullable ExtentPurgepurge_lazy(@Nullable ExtentPurgeI value) Sets the specified value to thepurge_lazyfield.set(ExtentAllocI alloc, ExtentDallocI dalloc, ExtentDestroyI destroy, ExtentCommitI commit, ExtentDecommitI decommit, ExtentPurgeI purge_lazy, ExtentPurgeI purge_forced, ExtentSplitI split, ExtentMergeI merge) Initializes this struct with the specified values.set(ExtentHooks src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).@Nullable ExtentSplitsplit()split(@Nullable ExtentSplitI value) Sets the specified value to thesplitfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ALLOC
public static final int ALLOCThe struct member offsets. -
DALLOC
public static final int DALLOCThe struct member offsets. -
DESTROY
public static final int DESTROYThe struct member offsets. -
COMMIT
public static final int COMMITThe struct member offsets. -
DECOMMIT
public static final int DECOMMITThe struct member offsets. -
PURGE_LAZY
public static final int PURGE_LAZYThe struct member offsets. -
PURGE_FORCED
public static final int PURGE_FORCEDThe struct member offsets. -
SPLIT
public static final int SPLITThe struct member offsets. -
MERGE
public static final int MERGEThe struct member offsets.
-
-
Constructor Details
-
ExtentHooks
Creates aExtentHooksinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<ExtentHooks>
-
alloc
- Returns:
- the value of the
allocfield.
-
dalloc
- Returns:
- the value of the
dallocfield.
-
destroy
- Returns:
- the value of the
destroyfield.
-
commit
- Returns:
- the value of the
commitfield.
-
decommit
- Returns:
- the value of the
decommitfield.
-
purge_lazy
- Returns:
- the value of the
purge_lazyfield.
-
purge_forced
- Returns:
- the value of the
purge_forcedfield.
-
split
- Returns:
- the value of the
splitfield.
-
merge
- Returns:
- the value of the
mergefield.
-
alloc
Sets the specified value to theallocfield. -
dalloc
Sets the specified value to thedallocfield. -
destroy
Sets the specified value to thedestroyfield. -
commit
Sets the specified value to thecommitfield. -
decommit
Sets the specified value to thedecommitfield. -
purge_lazy
Sets the specified value to thepurge_lazyfield. -
purge_forced
Sets the specified value to thepurge_forcedfield. -
split
Sets the specified value to thesplitfield. -
merge
Sets the specified value to themergefield. -
set
public ExtentHooks set(ExtentAllocI alloc, ExtentDallocI dalloc, ExtentDestroyI destroy, ExtentCommitI commit, ExtentDecommitI decommit, ExtentPurgeI purge_lazy, ExtentPurgeI purge_forced, ExtentSplitI split, ExtentMergeI merge) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newExtentHooksinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExtentHooksinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExtentHooksinstance allocated withBufferUtils. -
create
Returns a newExtentHooksinstance for the specified memory address. -
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
malloc
Returns a newExtentHooksinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExtentHooksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
nalloc
Unsafe version ofalloc(). -
ndalloc
Unsafe version ofdalloc(). -
ndestroy
Unsafe version ofdestroy(). -
ncommit
Unsafe version ofcommit(). -
ndecommit
Unsafe version ofdecommit(). -
npurge_lazy
Unsafe version ofpurge_lazy(). -
npurge_forced
Unsafe version ofpurge_forced(). -
nsplit
Unsafe version ofsplit(). -
nmerge
Unsafe version ofmerge(). -
nalloc
Unsafe version ofalloc. -
ndalloc
Unsafe version ofdalloc. -
ndestroy
Unsafe version ofdestroy. -
ncommit
Unsafe version ofcommit. -
ndecommit
Unsafe version ofdecommit. -
npurge_lazy
Unsafe version ofpurge_lazy. -
npurge_forced
Unsafe version ofpurge_forced. -
nsplit
Unsafe version ofsplit. -
nmerge
Unsafe version ofmerge. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-