Class XrHapticParametricPointEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class XrHapticParametricPointEXT
extends Struct<XrHapticParametricPointEXT>
implements NativeResource
struct XrHapticParametricPointEXT {
XrDuration time;
float value;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrHapticParametricPointEXT(ByteBuffer container) Creates aXrHapticParametricPointEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrHapticParametricPointEXTcalloc()Returns a newXrHapticParametricPointEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrHapticParametricPointEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrHapticParametricPointEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHapticParametricPointEXTcalloc(MemoryStack stack) Returns a newXrHapticParametricPointEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHapticParametricPointEXTcreate()Returns a newXrHapticParametricPointEXTinstance allocated withBufferUtils.create(int capacity) Returns a newXrHapticParametricPointEXT.Bufferinstance allocated withBufferUtils.static XrHapticParametricPointEXTcreate(long address) Returns a newXrHapticParametricPointEXTinstance for the specified memory address.create(long address, int capacity) Create aXrHapticParametricPointEXT.Bufferinstance at the specified memory.static @Nullable XrHapticParametricPointEXTcreateSafe(long address) static @Nullable XrHapticParametricPointEXT.BuffercreateSafe(long address, int capacity) static XrHapticParametricPointEXTmalloc()Returns a newXrHapticParametricPointEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrHapticParametricPointEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrHapticParametricPointEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrHapticParametricPointEXTmalloc(MemoryStack stack) Returns a newXrHapticParametricPointEXTinstance allocated on the specifiedMemoryStack.static longntime(long struct) Unsafe version oftime().static voidntime(long struct, long value) Unsafe version oftime.static floatnvalue(long struct) Unsafe version ofvalue().static voidnvalue(long struct, float value) Unsafe version ofvalue.set(long time, float value) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longtime()time(long value) Sets the specified value to thetimefield.floatvalue()value(float value) Sets the specified value to thevaluefield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
TIME
public static final int TIMEThe struct member offsets. -
VALUE
public static final int VALUEThe struct member offsets.
-
-
Constructor Details
-
XrHapticParametricPointEXT
Creates aXrHapticParametricPointEXTinstance 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<XrHapticParametricPointEXT>
-
time
- Returns:
- the value of the
timefield.
-
value
public float value()- Returns:
- the value of the
valuefield.
-
time
Sets the specified value to thetimefield. -
value
Sets the specified value to thevaluefield. -
set
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 newXrHapticParametricPointEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrHapticParametricPointEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrHapticParametricPointEXTinstance allocated withBufferUtils. -
create
Returns a newXrHapticParametricPointEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrHapticParametricPointEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrHapticParametricPointEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrHapticParametricPointEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrHapticParametricPointEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrHapticParametricPointEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrHapticParametricPointEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrHapticParametricPointEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrHapticParametricPointEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntime
public static long ntime(long struct) Unsafe version oftime(). -
nvalue
public static float nvalue(long struct) Unsafe version ofvalue(). -
ntime
public static void ntime(long struct, long value) Unsafe version oftime. -
nvalue
public static void nvalue(long struct, float value) Unsafe version ofvalue.
-