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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptiondefaultValue
(Consumer<RMTPropertyValue> consumer) Passes thedefaultValue
field to the specifiedConsumer
.defaultValue
(RMTPropertyValue value) Copies the specifiedRMTPropertyValue
to thedefaultValue
field.description
(ByteBuffer value) Sets the address of the specified encoded string to thedescription
field.@Nullable RMTProperty
firstChild
(@Nullable RMTProperty value) Sets the address of the specifiedRMTProperty
to thefirstChild
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.boolean
initialised
(boolean value) Sets the specified value to theinitialised
field.@Nullable RMTProperty
lastChild
(@Nullable RMTProperty value) Sets the address of the specifiedRMTProperty
to thelastChild
field.lastFrameValue
(Consumer<RMTPropertyValue> consumer) Passes thelastFrameValue
field to the specifiedConsumer
.lastFrameValue
(RMTPropertyValue value) Copies the specifiedRMTPropertyValue
to thelastFrameValue
field.name()
name
(ByteBuffer value) Sets the address of the specified encoded string to thename
field.int
nameHash()
nameHash
(int value) Sets the specified value to thenameHash
field.@Nullable RMTProperty
nextSibling
(@Nullable RMTProperty value) Sets the address of the specifiedRMTProperty
to thenextSibling
field.@Nullable RMTProperty
parent()
parent
(@Nullable RMTProperty value) Sets the address of the specifiedRMTProperty
to theparent
field.prevValue
(Consumer<RMTPropertyValue> consumer) Passes theprevValue
field to the specifiedConsumer
.prevValue
(RMTPropertyValue value) Copies the specifiedRMTPropertyValue
to theprevValue
field.int
prevValueFrame
(int value) Sets the specified value to theprevValueFrame
field.int
type()
type
(int value) Sets the specified value to thetype
field.int
uniqueID()
uniqueID
(int value) Sets the specified value to theuniqueID
field.value()
value
(Consumer<RMTPropertyValue> consumer) Passes thevalue
field to the specifiedConsumer
.value
(RMTPropertyValue value) Copies the specifiedRMTPropertyValue
to thevalue
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newRMTProperty.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 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
initialised
field.
-
type
public int type()- Returns:
- the value of the
type
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
value
- Returns:
- a
RMTPropertyValue
view of thevalue
field.
-
lastFrameValue
- Returns:
- a
RMTPropertyValue
view of thelastFrameValue
field.
-
prevValue
- Returns:
- a
RMTPropertyValue
view of theprevValue
field.
-
prevValueFrame
public int prevValueFrame()- Returns:
- the value of the
prevValueFrame
field.
-
name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
name
field.
-
description
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thedescription
field.
-
descriptionString
- Returns:
- the null-terminated string pointed to by the
description
field.
-
defaultValue
- Returns:
- a
RMTPropertyValue
view of thedefaultValue
field.
-
parent
- Returns:
- a
RMTProperty
view of the struct pointed to by theparent
field.
-
firstChild
- Returns:
- a
RMTProperty
view of the struct pointed to by thefirstChild
field.
-
lastChild
- Returns:
- a
RMTProperty
view of the struct pointed to by thelastChild
field.
-
nextSibling
- Returns:
- a
RMTProperty
view of the struct pointed to by thenextSibling
field.
-
nameHash
public int nameHash()- Returns:
- the value of the
nameHash
field.
-
uniqueID
public int uniqueID()- Returns:
- the value of the
uniqueID
field.
-
initialised
Sets the specified value to theinitialised
field. -
type
Sets the specified value to thetype
field. -
flags
Sets the specified value to theflags
field. -
value
Copies the specifiedRMTPropertyValue
to thevalue
field. -
value
Passes thevalue
field to the specifiedConsumer
. -
lastFrameValue
Copies the specifiedRMTPropertyValue
to thelastFrameValue
field. -
lastFrameValue
Passes thelastFrameValue
field to the specifiedConsumer
. -
prevValue
Copies the specifiedRMTPropertyValue
to theprevValue
field. -
prevValue
Passes theprevValue
field to the specifiedConsumer
. -
prevValueFrame
Sets the specified value to theprevValueFrame
field. -
name
Sets the address of the specified encoded string to thename
field. -
description
Sets the address of the specified encoded string to thedescription
field. -
defaultValue
Copies the specifiedRMTPropertyValue
to thedefaultValue
field. -
defaultValue
Passes thedefaultValue
field to the specifiedConsumer
. -
parent
Sets the address of the specifiedRMTProperty
to theparent
field. -
firstChild
Sets the address of the specifiedRMTProperty
to thefirstChild
field. -
lastChild
Sets the address of the specifiedRMTProperty
to thelastChild
field. -
nextSibling
Sets the address of the specifiedRMTProperty
to thenextSibling
field. -
nameHash
Sets the specified value to thenameHash
field. -
uniqueID
Sets the specified value to theuniqueID
field.
-