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>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
RMTProperty
public static class RMTProperty.Buffer
extends org.lwjgl.system.StructBuffer<RMTProperty,RMTProperty.Buffer>
implements org.lwjgl.system.NativeResource
An array of
RMTProperty structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 theRMTProperty.defaultValue()field to the specifiedConsumer.defaultValue(RMTPropertyValue value) Copies the specifiedRMTPropertyValueto theRMTProperty.defaultValue()field.description(ByteBuffer value) Sets the address of the specified encoded string to thedescriptionfield.@Nullable RMTPropertyfirstChild(@Nullable RMTProperty value) Sets the address of the specifiedRMTPropertyto theRMTProperty.firstChild()field.intflags()flags(int value) Sets the specified value to theflagsfield.booleaninitialised(boolean value) Sets the specified value to theRMTProperty.initialised()field.@Nullable RMTPropertylastChild(@Nullable RMTProperty value) Sets the address of the specifiedRMTPropertyto theRMTProperty.lastChild()field.lastFrameValue(Consumer<RMTPropertyValue> consumer) Passes theRMTProperty.lastFrameValue()field to the specifiedConsumer.lastFrameValue(RMTPropertyValue value) Copies the specifiedRMTPropertyValueto theRMTProperty.lastFrameValue()field.name()name(ByteBuffer value) Sets the address of the specified encoded string to theRMTProperty.name()field.intnameHash()nameHash(int value) Sets the specified value to theRMTProperty.nameHash()field.@Nullable RMTPropertynextSibling(@Nullable RMTProperty value) Sets the address of the specifiedRMTPropertyto theRMTProperty.nextSibling()field.@Nullable RMTPropertyparent()parent(@Nullable RMTProperty value) Sets the address of the specifiedRMTPropertyto theRMTProperty.parent()field.prevValue(Consumer<RMTPropertyValue> consumer) Passes theRMTProperty.prevValue()field to the specifiedConsumer.prevValue(RMTPropertyValue value) Copies the specifiedRMTPropertyValueto theRMTProperty.prevValue()field.intprevValueFrame(int value) Sets the specified value to theprevValueFramefield.inttype()type(int value) Sets the specified value to theRMTProperty.type()field.intuniqueID()uniqueID(int value) Sets the specified value to theRMTProperty.uniqueID()field.value()value(Consumer<RMTPropertyValue> consumer) Passes theRMTProperty.value()field to the specifiedConsumer.value(RMTPropertyValue value) Copies the specifiedRMTPropertyValueto theRMTProperty.value()field.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
RMTProperty.initialised()field.
-
type
public int type()- Returns:
- the value of the
RMTProperty.type()field.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
value
- Returns:
- a
RMTPropertyValueview of theRMTProperty.value()field.
-
lastFrameValue
- Returns:
- a
RMTPropertyValueview of theRMTProperty.lastFrameValue()field.
-
prevValue
- Returns:
- a
RMTPropertyValueview of theRMTProperty.prevValue()field.
-
prevValueFrame
public int prevValueFrame()- Returns:
- the value of the
prevValueFramefield.
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theRMTProperty.name()field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
RMTProperty.name()field.
-
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 theRMTProperty.defaultValue()field.
-
parent
- Returns:
- a
RMTPropertyview of the struct pointed to by theRMTProperty.parent()field.
-
firstChild
- Returns:
- a
RMTPropertyview of the struct pointed to by theRMTProperty.firstChild()field.
-
lastChild
- Returns:
- a
RMTPropertyview of the struct pointed to by theRMTProperty.lastChild()field.
-
nextSibling
- Returns:
- a
RMTPropertyview of the struct pointed to by theRMTProperty.nextSibling()field.
-
nameHash
public int nameHash()- Returns:
- the value of the
RMTProperty.nameHash()field.
-
uniqueID
public int uniqueID()- Returns:
- the value of the
RMTProperty.uniqueID()field.
-
initialised
Sets the specified value to theRMTProperty.initialised()field. -
type
Sets the specified value to theRMTProperty.type()field. -
flags
Sets the specified value to theflagsfield. -
value
Copies the specifiedRMTPropertyValueto theRMTProperty.value()field. -
value
Passes theRMTProperty.value()field to the specifiedConsumer. -
lastFrameValue
Copies the specifiedRMTPropertyValueto theRMTProperty.lastFrameValue()field. -
lastFrameValue
Passes theRMTProperty.lastFrameValue()field to the specifiedConsumer. -
prevValue
Copies the specifiedRMTPropertyValueto theRMTProperty.prevValue()field. -
prevValue
Passes theRMTProperty.prevValue()field to the specifiedConsumer. -
prevValueFrame
Sets the specified value to theprevValueFramefield. -
name
Sets the address of the specified encoded string to theRMTProperty.name()field. -
description
Sets the address of the specified encoded string to thedescriptionfield. -
defaultValue
Copies the specifiedRMTPropertyValueto theRMTProperty.defaultValue()field. -
defaultValue
Passes theRMTProperty.defaultValue()field to the specifiedConsumer. -
parent
Sets the address of the specifiedRMTPropertyto theRMTProperty.parent()field. -
firstChild
Sets the address of the specifiedRMTPropertyto theRMTProperty.firstChild()field. -
lastChild
Sets the address of the specifiedRMTPropertyto theRMTProperty.lastChild()field. -
nextSibling
Sets the address of the specifiedRMTPropertyto theRMTProperty.nextSibling()field. -
nameHash
Sets the specified value to theRMTProperty.nameHash()field. -
uniqueID
Sets the specified value to theRMTProperty.uniqueID()field.
-