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 ofChunkHooks
structs.
-
-
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.Buffer
instance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ChunkAlloc
alloc()
Returns theChunkAlloc
instance at thealloc
field.ChunkHooks.Buffer
alloc(ChunkAllocI value)
Sets the address of the specifiedChunkAllocI
to thealloc
field.ChunkCommit
commit()
Returns theChunkCommit
instance at thecommit
field.ChunkHooks.Buffer
commit(ChunkCommitI value)
Sets the address of the specifiedChunkCommitI
to thecommit
field.ChunkDalloc
dalloc()
Returns theChunkDalloc
instance at thedalloc
field.ChunkHooks.Buffer
dalloc(ChunkDallocI value)
Sets the address of the specifiedChunkDallocI
to thedalloc
field.ChunkDecommit
decommit()
Returns theChunkDecommit
instance at thedecommit
field.ChunkHooks.Buffer
decommit(ChunkDecommitI value)
Sets the address of the specifiedChunkDecommitI
to thedecommit
field.ChunkMerge
merge()
Returns theChunkMerge
instance at themerge
field.ChunkHooks.Buffer
merge(ChunkMergeI value)
Sets the address of the specifiedChunkMergeI
to themerge
field.ChunkPurge
purge()
Returns theChunkPurge
instance at thepurge
field.ChunkHooks.Buffer
purge(ChunkPurgeI value)
Sets the address of the specifiedChunkPurgeI
to thepurge
field.ChunkSplit
split()
Returns theChunkSplit
instance at thesplit
field.ChunkHooks.Buffer
split(ChunkSplitI value)
Sets the address of the specifiedChunkSplitI
to thesplit
field.-
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.Buffer
instance 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 theChunkAlloc
instance at thealloc
field.
-
dalloc
public ChunkDalloc dalloc()
Returns theChunkDalloc
instance at thedalloc
field.
-
commit
public ChunkCommit commit()
Returns theChunkCommit
instance at thecommit
field.
-
decommit
public ChunkDecommit decommit()
Returns theChunkDecommit
instance at thedecommit
field.
-
purge
public ChunkPurge purge()
Returns theChunkPurge
instance at thepurge
field.
-
split
public ChunkSplit split()
Returns theChunkSplit
instance at thesplit
field.
-
merge
public ChunkMerge merge()
Returns theChunkMerge
instance at themerge
field.
-
alloc
public ChunkHooks.Buffer alloc(ChunkAllocI value)
Sets the address of the specifiedChunkAllocI
to thealloc
field.
-
dalloc
public ChunkHooks.Buffer dalloc(ChunkDallocI value)
Sets the address of the specifiedChunkDallocI
to thedalloc
field.
-
commit
public ChunkHooks.Buffer commit(ChunkCommitI value)
Sets the address of the specifiedChunkCommitI
to thecommit
field.
-
decommit
public ChunkHooks.Buffer decommit(ChunkDecommitI value)
Sets the address of the specifiedChunkDecommitI
to thedecommit
field.
-
purge
public ChunkHooks.Buffer purge(ChunkPurgeI value)
Sets the address of the specifiedChunkPurgeI
to thepurge
field.
-
split
public ChunkHooks.Buffer split(ChunkSplitI value)
Sets the address of the specifiedChunkSplitI
to thesplit
field.
-
merge
public ChunkHooks.Buffer merge(ChunkMergeI value)
Sets the address of the specifiedChunkMergeI
to themerge
field.
-
-