Package org.lwjgl.util.remotery
Class RMTProperty.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<RMTProperty.Buffer>
org.lwjgl.system.StructBuffer<RMTProperty,RMTProperty.Buffer>
org.lwjgl.util.remotery.RMTProperty.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<RMTProperty>,NativeResource,Pointer
- Enclosing class:
RMTProperty
public static class RMTProperty.Buffer
extends StructBuffer<RMTProperty,RMTProperty.Buffer>
implements NativeResource
An array of
RMTProperty 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
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newRMTProperty.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptiondefaultValue(Consumer<RMTPropertyValue> consumer) Passes thedefaultValuefield to the specifiedConsumer.defaultValue(RMTPropertyValue value) Copies the specifiedRMTPropertyValueto thedefaultValuefield.description(ByteBuffer value) Sets the address of the specified encoded string to thedescriptionfield.@Nullable RMTPropertyfirstChild(@Nullable RMTProperty value) Sets the address of the specifiedRMTPropertyto thefirstChildfield.intflags()flags(int value) Sets the specified value to theflagsfield.booleaninitialised(boolean value) Sets the specified value to theinitialisedfield.@Nullable RMTPropertylastChild(@Nullable RMTProperty value) Sets the address of the specifiedRMTPropertyto thelastChildfield.lastFrameValue(Consumer<RMTPropertyValue> consumer) Passes thelastFrameValuefield to the specifiedConsumer.lastFrameValue(RMTPropertyValue value) Copies the specifiedRMTPropertyValueto thelastFrameValuefield.name()name(ByteBuffer value) Sets the address of the specified encoded string to thenamefield.intnameHash()nameHash(int value) Sets the specified value to thenameHashfield.@Nullable RMTPropertynextSibling(@Nullable RMTProperty value) Sets the address of the specifiedRMTPropertyto thenextSiblingfield.@Nullable RMTPropertyparent()parent(@Nullable RMTProperty value) Sets the address of the specifiedRMTPropertyto theparentfield.prevValue(Consumer<RMTPropertyValue> consumer) Passes theprevValuefield to the specifiedConsumer.prevValue(RMTPropertyValue value) Copies the specifiedRMTPropertyValueto theprevValuefield.intprevValueFrame(int value) Sets the specified value to theprevValueFramefield.inttype()type(int value) Sets the specified value to thetypefield.intuniqueID()uniqueID(int value) Sets the specified value to theuniqueIDfield.value()value(Consumer<RMTPropertyValue> consumer) Passes thevaluefield to the specifiedConsumer.value(RMTPropertyValue value) Copies the specifiedRMTPropertyValueto thevaluefield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newRMTProperty.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 by
RMTProperty.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
initialised
public boolean initialised()- Returns:
- the value of the
initialisedfield.
-
type
public int type()- Returns:
- the value of the
typefield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
value
- Returns:
- a
RMTPropertyValueview of thevaluefield.
-
lastFrameValue
- Returns:
- a
RMTPropertyValueview of thelastFrameValuefield.
-
prevValue
- Returns:
- a
RMTPropertyValueview of theprevValuefield.
-
prevValueFrame
public int prevValueFrame()- Returns:
- the value of the
prevValueFramefield.
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
description
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thedescriptionfield.
-
descriptionString
- Returns:
- the null-terminated string pointed to by the
descriptionfield.
-
defaultValue
- Returns:
- a
RMTPropertyValueview of thedefaultValuefield.
-
parent
- Returns:
- a
RMTPropertyview of the struct pointed to by theparentfield.
-
firstChild
- Returns:
- a
RMTPropertyview of the struct pointed to by thefirstChildfield.
-
lastChild
- Returns:
- a
RMTPropertyview of the struct pointed to by thelastChildfield.
-
nextSibling
- Returns:
- a
RMTPropertyview of the struct pointed to by thenextSiblingfield.
-
nameHash
public int nameHash()- Returns:
- the value of the
nameHashfield.
-
uniqueID
public int uniqueID()- Returns:
- the value of the
uniqueIDfield.
-
initialised
Sets the specified value to theinitialisedfield. -
type
Sets the specified value to thetypefield. -
flags
Sets the specified value to theflagsfield. -
value
Copies the specifiedRMTPropertyValueto thevaluefield. -
value
Passes thevaluefield to the specifiedConsumer. -
lastFrameValue
Copies the specifiedRMTPropertyValueto thelastFrameValuefield. -
lastFrameValue
Passes thelastFrameValuefield to the specifiedConsumer. -
prevValue
Copies the specifiedRMTPropertyValueto theprevValuefield. -
prevValue
Passes theprevValuefield to the specifiedConsumer. -
prevValueFrame
Sets the specified value to theprevValueFramefield. -
name
Sets the address of the specified encoded string to thenamefield. -
description
Sets the address of the specified encoded string to thedescriptionfield. -
defaultValue
Copies the specifiedRMTPropertyValueto thedefaultValuefield. -
defaultValue
Passes thedefaultValuefield to the specifiedConsumer. -
parent
Sets the address of the specifiedRMTPropertyto theparentfield. -
firstChild
Sets the address of the specifiedRMTPropertyto thefirstChildfield. -
lastChild
Sets the address of the specifiedRMTPropertyto thelastChildfield. -
nextSibling
Sets the address of the specifiedRMTPropertyto thenextSiblingfield. -
nameHash
Sets the specified value to thenameHashfield. -
uniqueID
Sets the specified value to theuniqueIDfield.
-