Package org.lwjgl.util.remotery
Class RMTProperty
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct rmtProperty {
rmtBool initialised;
rmtPropertyType type;
rmtPropertyFlags flags;
{@link RMTPropertyValue rmtPropertyValue} value;
{@link RMTPropertyValue rmtPropertyValue} lastFrameValue;
{@link RMTPropertyValue rmtPropertyValue} prevValue;
rmtU32 prevValueFrame;
char const * name;
char const * description;
{@link RMTPropertyValue rmtPropertyValue} defaultValue;
{@link RMTProperty rmtProperty} * parent;
{@link RMTProperty rmtProperty} * firstChild;
{@link RMTProperty rmtProperty} * lastChild;
{@link RMTProperty rmtProperty} * nextSibling;
rmtU32 nameHash;
rmtU32 uniqueID;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionRMTProperty
(ByteBuffer container) Creates aRMTProperty
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic RMTProperty
calloc()
Returns a newRMTProperty
instance allocated withmemCalloc
.static RMTProperty.Buffer
calloc
(int capacity) Returns a newRMTProperty.Buffer
instance allocated withmemCalloc
.static RMTProperty.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newRMTProperty.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static RMTProperty
calloc
(MemoryStack stack) Returns a newRMTProperty
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static RMTProperty
create()
Returns a newRMTProperty
instance allocated withBufferUtils
.static RMTProperty.Buffer
create
(int capacity) Returns a newRMTProperty.Buffer
instance allocated withBufferUtils
.static RMTProperty
create
(long address) Returns a newRMTProperty
instance for the specified memory address.static RMTProperty.Buffer
create
(long address, int capacity) Create aRMTProperty.Buffer
instance at the specified memory.static @Nullable RMTProperty
createSafe
(long address) static @Nullable RMTProperty.Buffer
createSafe
(long address, int capacity) defaultValue
(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.static RMTProperty
malloc()
Returns a newRMTProperty
instance allocated withmemAlloc
.static RMTProperty.Buffer
malloc
(int capacity) Returns a newRMTProperty.Buffer
instance allocated withmemAlloc
.static RMTProperty.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newRMTProperty.Buffer
instance allocated on the specifiedMemoryStack
.static RMTProperty
malloc
(MemoryStack stack) Returns a newRMTProperty
instance allocated on the specifiedMemoryStack
.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.static RMTPropertyValue
ndefaultValue
(long struct) Unsafe version ofdefaultValue()
.static void
ndefaultValue
(long struct, RMTPropertyValue value) Unsafe version ofdefaultValue
.static ByteBuffer
ndescription
(long struct) Unsafe version ofdescription()
.static void
ndescription
(long struct, ByteBuffer value) Unsafe version ofdescription
.static String
ndescriptionString
(long struct) Unsafe version ofdescriptionString()
.@Nullable RMTProperty
nextSibling
(@Nullable RMTProperty value) Sets the address of the specifiedRMTProperty
to thenextSibling
field.static @Nullable RMTProperty
nfirstChild
(long struct) Unsafe version offirstChild()
.static void
nfirstChild
(long struct, @Nullable RMTProperty value) Unsafe version offirstChild
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
ninitialised
(long struct) Unsafe version ofinitialised()
.static void
ninitialised
(long struct, int value) Unsafe version ofinitialised
.static @Nullable RMTProperty
nlastChild
(long struct) Unsafe version oflastChild()
.static void
nlastChild
(long struct, @Nullable RMTProperty value) Unsafe version oflastChild
.static RMTPropertyValue
nlastFrameValue
(long struct) Unsafe version oflastFrameValue()
.static void
nlastFrameValue
(long struct, RMTPropertyValue value) Unsafe version oflastFrameValue
.static ByteBuffer
nname
(long struct) Unsafe version ofname()
.static void
nname
(long struct, ByteBuffer value) Unsafe version ofname
.static int
nnameHash
(long struct) Unsafe version ofnameHash()
.static void
nnameHash
(long struct, int value) Unsafe version ofnameHash
.static String
nnameString
(long struct) Unsafe version ofnameString()
.static @Nullable RMTProperty
nnextSibling
(long struct) Unsafe version ofnextSibling()
.static void
nnextSibling
(long struct, @Nullable RMTProperty value) Unsafe version ofnextSibling
.static @Nullable RMTProperty
nparent
(long struct) Unsafe version ofparent()
.static void
nparent
(long struct, @Nullable RMTProperty value) Unsafe version ofparent
.static RMTPropertyValue
nprevValue
(long struct) Unsafe version ofprevValue()
.static void
nprevValue
(long struct, RMTPropertyValue value) Unsafe version ofprevValue
.static int
nprevValueFrame
(long struct) Unsafe version ofprevValueFrame()
.static void
nprevValueFrame
(long struct, int value) Unsafe version ofprevValueFrame
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.static int
nuniqueID
(long struct) Unsafe version ofuniqueID()
.static void
nuniqueID
(long struct, int value) Unsafe version ofuniqueID
.static RMTPropertyValue
nvalue
(long struct) Unsafe version ofvalue()
.static void
nvalue
(long struct, RMTPropertyValue value) Unsafe version ofvalue
.@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.set
(boolean initialised, int type, int flags, RMTPropertyValue value, RMTPropertyValue lastFrameValue, RMTPropertyValue prevValue, int prevValueFrame, ByteBuffer name, ByteBuffer description, RMTPropertyValue defaultValue, @Nullable RMTProperty parent, @Nullable RMTProperty firstChild, @Nullable RMTProperty lastChild, @Nullable RMTProperty nextSibling, int nameHash, int uniqueID) Initializes this struct with the specified values.set
(RMTProperty src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.int
uniqueID()
uniqueID
(int value) Sets the specified value to theuniqueID
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.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.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
INITIALISED
public static final int INITIALISEDThe struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
VALUE
public static final int VALUEThe struct member offsets. -
LASTFRAMEVALUE
public static final int LASTFRAMEVALUEThe struct member offsets. -
PREVVALUE
public static final int PREVVALUEThe struct member offsets. -
PREVVALUEFRAME
public static final int PREVVALUEFRAMEThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
DESCRIPTION
public static final int DESCRIPTIONThe struct member offsets. -
DEFAULTVALUE
public static final int DEFAULTVALUEThe struct member offsets. -
PARENT
public static final int PARENTThe struct member offsets. -
FIRSTCHILD
public static final int FIRSTCHILDThe struct member offsets. -
LASTCHILD
public static final int LASTCHILDThe struct member offsets. -
NEXTSIBLING
public static final int NEXTSIBLINGThe struct member offsets. -
NAMEHASH
public static final int NAMEHASHThe struct member offsets. -
UNIQUEID
public static final int UNIQUEIDThe struct member offsets.
-
-
Constructor Details
-
RMTProperty
Creates aRMTProperty
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<RMTProperty>
-
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. -
set
public RMTProperty set(boolean initialised, int type, int flags, RMTPropertyValue value, RMTPropertyValue lastFrameValue, RMTPropertyValue prevValue, int prevValueFrame, ByteBuffer name, ByteBuffer description, RMTPropertyValue defaultValue, @Nullable RMTProperty parent, @Nullable RMTProperty firstChild, @Nullable RMTProperty lastChild, @Nullable RMTProperty nextSibling, int nameHash, int uniqueID) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newRMTProperty
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newRMTProperty
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newRMTProperty
instance allocated withBufferUtils
. -
create
Returns a newRMTProperty
instance for the specified memory address. -
createSafe
-
malloc
Returns a newRMTProperty.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newRMTProperty.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newRMTProperty.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aRMTProperty.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newRMTProperty
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newRMTProperty
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newRMTProperty.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newRMTProperty.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ninitialised
public static int ninitialised(long struct) Unsafe version ofinitialised()
. -
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nvalue
Unsafe version ofvalue()
. -
nlastFrameValue
Unsafe version oflastFrameValue()
. -
nprevValue
Unsafe version ofprevValue()
. -
nprevValueFrame
public static int nprevValueFrame(long struct) Unsafe version ofprevValueFrame()
. -
nname
Unsafe version ofname()
. -
nnameString
Unsafe version ofnameString()
. -
ndescription
Unsafe version ofdescription()
. -
ndescriptionString
Unsafe version ofdescriptionString()
. -
ndefaultValue
Unsafe version ofdefaultValue()
. -
nparent
Unsafe version ofparent()
. -
nfirstChild
Unsafe version offirstChild()
. -
nlastChild
Unsafe version oflastChild()
. -
nnextSibling
Unsafe version ofnextSibling()
. -
nnameHash
public static int nnameHash(long struct) Unsafe version ofnameHash()
. -
nuniqueID
public static int nuniqueID(long struct) Unsafe version ofuniqueID()
. -
ninitialised
public static void ninitialised(long struct, int value) Unsafe version ofinitialised
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nvalue
Unsafe version ofvalue
. -
nlastFrameValue
Unsafe version oflastFrameValue
. -
nprevValue
Unsafe version ofprevValue
. -
nprevValueFrame
public static void nprevValueFrame(long struct, int value) Unsafe version ofprevValueFrame
. -
nname
Unsafe version ofname
. -
ndescription
Unsafe version ofdescription
. -
ndefaultValue
Unsafe version ofdefaultValue
. -
nparent
Unsafe version ofparent
. -
nfirstChild
Unsafe version offirstChild
. -
nlastChild
Unsafe version oflastChild
. -
nnextSibling
Unsafe version ofnextSibling
. -
nnameHash
public static void nnameHash(long struct, int value) Unsafe version ofnameHash
. -
nuniqueID
public static void nuniqueID(long struct, int value) Unsafe version ofuniqueID
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-