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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aRMTPropertyValueinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbooleanBool()Bool(boolean value) Sets the specified value to theBoolfield.static RMTPropertyValuecalloc()Returns a newRMTPropertyValueinstance allocated withmemCalloc.static RMTPropertyValue.Buffercalloc(int capacity) Returns a newRMTPropertyValue.Bufferinstance allocated withmemCalloc.static RMTPropertyValue.Buffercalloc(int capacity, MemoryStack stack) Returns a newRMTPropertyValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RMTPropertyValuecalloc(MemoryStack stack) Returns a newRMTPropertyValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RMTPropertyValuecreate()Returns a newRMTPropertyValueinstance allocated withBufferUtils.static RMTPropertyValue.Buffercreate(int capacity) Returns a newRMTPropertyValue.Bufferinstance allocated withBufferUtils.static RMTPropertyValuecreate(long address) Returns a newRMTPropertyValueinstance for the specified memory address.static RMTPropertyValue.Buffercreate(long address, int capacity) Create aRMTPropertyValue.Bufferinstance at the specified memory.static @Nullable RMTPropertyValuecreateSafe(long address) static @Nullable RMTPropertyValue.BuffercreateSafe(long address, int capacity) floatF32()F32(float value) Sets the specified value to theF32field.doubleF64()F64(double value) Sets the specified value to theF64field.static RMTPropertyValuemalloc()Returns a newRMTPropertyValueinstance allocated withmemAlloc.static RMTPropertyValue.Buffermalloc(int capacity) Returns a newRMTPropertyValue.Bufferinstance allocated withmemAlloc.static RMTPropertyValue.Buffermalloc(int capacity, MemoryStack stack) Returns a newRMTPropertyValue.Bufferinstance allocated on the specifiedMemoryStack.static RMTPropertyValuemalloc(MemoryStack stack) Returns a newRMTPropertyValueinstance allocated on the specifiedMemoryStack.static intnBool(long struct) Unsafe version ofBool().static voidnBool(long struct, int value) Unsafe version ofBool.static floatnF32(long struct) Unsafe version ofF32.static voidnF32(long struct, float value) Unsafe version ofF32.static doublenF64(long struct) Unsafe version ofF64.static voidnF64(long struct, double value) Unsafe version ofF64.static intnS32(long struct) Unsafe version ofS32.static voidnS32(long struct, int value) Unsafe version ofS32.static longnS64(long struct) Unsafe version ofS64.static voidnS64(long struct, long value) Unsafe version ofS64.static intnU32(long struct) Unsafe version ofU32.static voidnU32(long struct, int value) Unsafe version ofU32.static longnU64(long struct) Unsafe version ofU64.static voidnU64(long struct, long value) Unsafe version ofU64.intS32()S32(int value) Sets the specified value to theS32field.longS64()S64(long value) Sets the specified value to theS64field.set(RMTPropertyValue src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intU32()U32(int value) Sets the specified value to theU32field.longU64()U64(long value) Sets the specified value to theU64field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aRMTPropertyValueinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<RMTPropertyValue>
-
Bool
public boolean Bool()- Returns:
- the value of the
Boolfield.
-
S32
public int S32()- Returns:
- the value of the
S32field.
-
U32
public int U32()- Returns:
- the value of the
U32field.
-
F32
public float F32()- Returns:
- the value of the
F32field.
-
S64
public long S64()- Returns:
- the value of the
S64field.
-
U64
public long U64()- Returns:
- the value of the
U64field.
-
F64
public double F64()- Returns:
- the value of the
F64field.
-
Bool
Sets the specified value to theBoolfield. -
S32
Sets the specified value to theS32field. -
U32
Sets the specified value to theU32field. -
F32
Sets the specified value to theF32field. -
S64
Sets the specified value to theS64field. -
U64
Sets the specified value to theU64field. -
F64
Sets the specified value to theF64field. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newRMTPropertyValueinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newRMTPropertyValueinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newRMTPropertyValueinstance allocated withBufferUtils. -
create
Returns a newRMTPropertyValueinstance for the specified memory address. -
createSafe
-
malloc
Returns a newRMTPropertyValue.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newRMTPropertyValue.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newRMTPropertyValue.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aRMTPropertyValue.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newRMTPropertyValueinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newRMTPropertyValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newRMTPropertyValue.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newRMTPropertyValue.Bufferinstance allocated on the specifiedMemoryStackand 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.
-