Package org.lwjgl.util.remotery
Class RMTPropertyValue
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
union rmtPropertyValue {
rmtBool Bool;
rmtS32 S32;
rmtU32 U32;
rmtF32 F32;
rmtS64 S64;
rmtU64 U64;
rmtF64 F64;
}
-
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 size in bytes.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
ConstructorsConstructorDescriptionRMTPropertyValue
(ByteBuffer container) Creates aRMTPropertyValue
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Bool()
Bool
(boolean value) Sets the specified value to theBool
field.static RMTPropertyValue
calloc()
Returns a newRMTPropertyValue
instance allocated withmemCalloc
.static RMTPropertyValue.Buffer
calloc
(int capacity) Returns a newRMTPropertyValue.Buffer
instance allocated withmemCalloc
.static RMTPropertyValue.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newRMTPropertyValue.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static RMTPropertyValue
calloc
(MemoryStack stack) Returns a newRMTPropertyValue
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static RMTPropertyValue
create()
Returns a newRMTPropertyValue
instance allocated withBufferUtils
.static RMTPropertyValue.Buffer
create
(int capacity) Returns a newRMTPropertyValue.Buffer
instance allocated withBufferUtils
.static RMTPropertyValue
create
(long address) Returns a newRMTPropertyValue
instance for the specified memory address.static RMTPropertyValue.Buffer
create
(long address, int capacity) Create aRMTPropertyValue.Buffer
instance at the specified memory.static @Nullable RMTPropertyValue
createSafe
(long address) static @Nullable RMTPropertyValue.Buffer
createSafe
(long address, int capacity) float
F32()
F32
(float value) Sets the specified value to theF32
field.double
F64()
F64
(double value) Sets the specified value to theF64
field.static RMTPropertyValue
malloc()
Returns a newRMTPropertyValue
instance allocated withmemAlloc
.static RMTPropertyValue.Buffer
malloc
(int capacity) Returns a newRMTPropertyValue.Buffer
instance allocated withmemAlloc
.static RMTPropertyValue.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newRMTPropertyValue.Buffer
instance allocated on the specifiedMemoryStack
.static RMTPropertyValue
malloc
(MemoryStack stack) Returns a newRMTPropertyValue
instance allocated on the specifiedMemoryStack
.static int
nBool
(long struct) Unsafe version ofBool()
.static void
nBool
(long struct, int value) Unsafe version ofBool
.static float
nF32
(long struct) Unsafe version ofF32
.static void
nF32
(long struct, float value) Unsafe version ofF32
.static double
nF64
(long struct) Unsafe version ofF64
.static void
nF64
(long struct, double value) Unsafe version ofF64
.static int
nS32
(long struct) Unsafe version ofS32
.static void
nS32
(long struct, int value) Unsafe version ofS32
.static long
nS64
(long struct) Unsafe version ofS64
.static void
nS64
(long struct, long value) Unsafe version ofS64
.static int
nU32
(long struct) Unsafe version ofU32
.static void
nU32
(long struct, int value) Unsafe version ofU32
.static long
nU64
(long struct) Unsafe version ofU64
.static void
nU64
(long struct, long value) Unsafe version ofU64
.int
S32()
S32
(int value) Sets the specified value to theS32
field.long
S64()
S64
(long value) Sets the specified value to theS64
field.set
(RMTPropertyValue src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
U32()
U32
(int value) Sets the specified value to theU32
field.long
U64()
U64
(long value) Sets the specified value to theU64
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. -
BOOL
public static final int BOOLThe struct member offsets. -
S32
public static final int S32The struct member offsets. -
U32
public static final int U32The struct member offsets. -
F32
public static final int F32The struct member offsets. -
S64
public static final int S64The struct member offsets. -
U64
public static final int U64The struct member offsets. -
F64
public static final int F64The struct member offsets.
-
-
Constructor Details
-
RMTPropertyValue
Creates aRMTPropertyValue
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<RMTPropertyValue>
-
Bool
public boolean Bool()- Returns:
- the value of the
Bool
field.
-
S32
public int S32()- Returns:
- the value of the
S32
field.
-
U32
public int U32()- Returns:
- the value of the
U32
field.
-
F32
public float F32()- Returns:
- the value of the
F32
field.
-
S64
public long S64()- Returns:
- the value of the
S64
field.
-
U64
public long U64()- Returns:
- the value of the
U64
field.
-
F64
public double F64()- Returns:
- the value of the
F64
field.
-
Bool
Sets the specified value to theBool
field. -
S32
Sets the specified value to theS32
field. -
U32
Sets the specified value to theU32
field. -
F32
Sets the specified value to theF32
field. -
S64
Sets the specified value to theS64
field. -
U64
Sets the specified value to theU64
field. -
F64
Sets the specified value to theF64
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newRMTPropertyValue
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newRMTPropertyValue
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newRMTPropertyValue
instance allocated withBufferUtils
. -
create
Returns a newRMTPropertyValue
instance for the specified memory address. -
createSafe
-
malloc
Returns a newRMTPropertyValue.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newRMTPropertyValue.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newRMTPropertyValue.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aRMTPropertyValue.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newRMTPropertyValue
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newRMTPropertyValue
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newRMTPropertyValue.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newRMTPropertyValue.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nBool
public static int nBool(long struct) Unsafe version ofBool()
. -
nS32
public static int nS32(long struct) Unsafe version ofS32
. -
nU32
public static int nU32(long struct) Unsafe version ofU32
. -
nF32
public static float nF32(long struct) Unsafe version ofF32
. -
nS64
public static long nS64(long struct) Unsafe version ofS64
. -
nU64
public static long nU64(long struct) Unsafe version ofU64
. -
nF64
public static double nF64(long struct) Unsafe version ofF64
. -
nBool
public static void nBool(long struct, int value) Unsafe version ofBool
. -
nS32
public static void nS32(long struct, int value) Unsafe version ofS32
. -
nU32
public static void nU32(long struct, int value) Unsafe version ofU32
. -
nF32
public static void nF32(long struct, float value) Unsafe version ofF32
. -
nS64
public static void nS64(long struct, long value) Unsafe version ofS64
. -
nU64
public static void nU64(long struct, long value) Unsafe version ofU64
. -
nF64
public static void nF64(long struct, double value) Unsafe version ofF64
.
-