Package org.lwjgl.system.jemalloc
Class ChunkHooks.Buffer
- java.lang.Object
-
- org.lwjgl.system.StructBuffer<ChunkHooks,ChunkHooks.Buffer>
-
- org.lwjgl.system.jemalloc.ChunkHooks.Buffer
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
- Enclosing class:
- ChunkHooks
public static final class ChunkHooks.Buffer extends StructBuffer<ChunkHooks,ChunkHooks.Buffer>
An array ofChunkHooksstructs.
-
-
Nested Class Summary
-
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
-
-
Constructor Summary
Constructors Constructor and Description Buffer(java.nio.ByteBuffer container)Creates a newChunkHooks.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ChunkAllocalloc()Returns theChunkAllocinstance at theallocfield.ChunkHooks.Bufferalloc(ChunkAllocI value)Sets the address of the specifiedChunkAllocIto theallocfield.ChunkCommitcommit()Returns theChunkCommitinstance at thecommitfield.ChunkHooks.Buffercommit(ChunkCommitI value)Sets the address of the specifiedChunkCommitIto thecommitfield.ChunkDallocdalloc()Returns theChunkDallocinstance at thedallocfield.ChunkHooks.Bufferdalloc(ChunkDallocI value)Sets the address of the specifiedChunkDallocIto thedallocfield.ChunkDecommitdecommit()Returns theChunkDecommitinstance at thedecommitfield.ChunkHooks.Bufferdecommit(ChunkDecommitI value)Sets the address of the specifiedChunkDecommitIto thedecommitfield.ChunkMergemerge()Returns theChunkMergeinstance at themergefield.ChunkHooks.Buffermerge(ChunkMergeI value)Sets the address of the specifiedChunkMergeIto themergefield.ChunkPurgepurge()Returns theChunkPurgeinstance at thepurgefield.ChunkHooks.Bufferpurge(ChunkPurgeI value)Sets the address of the specifiedChunkPurgeIto thepurgefield.ChunkSplitsplit()Returns theChunkSplitinstance at thesplitfield.ChunkHooks.Buffersplit(ChunkSplitI value)Sets the address of the specifiedChunkSplitIto thesplitfield.-
Methods inherited from class org.lwjgl.system.StructBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, get, get, get, get, hasRemaining, limit, limit, mark, position, position, put, put, put, remaining, reset, rewind, slice, slice, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newChunkHooks.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byChunkHooks.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
-
Method Detail
-
alloc
public ChunkAlloc alloc()
Returns theChunkAllocinstance at theallocfield.
-
dalloc
public ChunkDalloc dalloc()
Returns theChunkDallocinstance at thedallocfield.
-
commit
public ChunkCommit commit()
Returns theChunkCommitinstance at thecommitfield.
-
decommit
public ChunkDecommit decommit()
Returns theChunkDecommitinstance at thedecommitfield.
-
purge
public ChunkPurge purge()
Returns theChunkPurgeinstance at thepurgefield.
-
split
public ChunkSplit split()
Returns theChunkSplitinstance at thesplitfield.
-
merge
public ChunkMerge merge()
Returns theChunkMergeinstance at themergefield.
-
alloc
public ChunkHooks.Buffer alloc(ChunkAllocI value)
Sets the address of the specifiedChunkAllocIto theallocfield.
-
dalloc
public ChunkHooks.Buffer dalloc(ChunkDallocI value)
Sets the address of the specifiedChunkDallocIto thedallocfield.
-
commit
public ChunkHooks.Buffer commit(ChunkCommitI value)
Sets the address of the specifiedChunkCommitIto thecommitfield.
-
decommit
public ChunkHooks.Buffer decommit(ChunkDecommitI value)
Sets the address of the specifiedChunkDecommitIto thedecommitfield.
-
purge
public ChunkHooks.Buffer purge(ChunkPurgeI value)
Sets the address of the specifiedChunkPurgeIto thepurgefield.
-
split
public ChunkHooks.Buffer split(ChunkSplitI value)
Sets the address of the specifiedChunkSplitIto thesplitfield.
-
merge
public ChunkHooks.Buffer merge(ChunkMergeI value)
Sets the address of the specifiedChunkMergeIto themergefield.
-
-