Package org.lwjgl.openxr
Class XrFaceExpressionWeightsFB
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrFaceExpressionWeightsFB
extends Struct<XrFaceExpressionWeightsFB>
implements NativeResource
struct XrFaceExpressionWeightsFB {
XrStructureType type;
void * next;
uint32_t weightCount;
float * weights;
uint32_t confidenceCount;
float * confidences;
XrFaceExpressionStatusFB status;
XrTime time;
}-
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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrFaceExpressionWeightsFB(ByteBuffer container) Creates aXrFaceExpressionWeightsFBinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrFaceExpressionWeightsFBcalloc()Returns a newXrFaceExpressionWeightsFBinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrFaceExpressionWeightsFB.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrFaceExpressionWeightsFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrFaceExpressionWeightsFBcalloc(MemoryStack stack) Returns a newXrFaceExpressionWeightsFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intconfidences(FloatBuffer value) Sets the address of the specifiedFloatBufferto theconfidencesfield.static XrFaceExpressionWeightsFBcreate()Returns a newXrFaceExpressionWeightsFBinstance allocated withBufferUtils.create(int capacity) Returns a newXrFaceExpressionWeightsFB.Bufferinstance allocated withBufferUtils.static XrFaceExpressionWeightsFBcreate(long address) Returns a newXrFaceExpressionWeightsFBinstance for the specified memory address.create(long address, int capacity) Create aXrFaceExpressionWeightsFB.Bufferinstance at the specified memory.static @Nullable XrFaceExpressionWeightsFBcreateSafe(long address) static @Nullable XrFaceExpressionWeightsFB.BuffercreateSafe(long address, int capacity) static XrFaceExpressionWeightsFBmalloc()Returns a newXrFaceExpressionWeightsFBinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrFaceExpressionWeightsFB.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrFaceExpressionWeightsFB.Bufferinstance allocated on the specifiedMemoryStack.static XrFaceExpressionWeightsFBmalloc(MemoryStack stack) Returns a newXrFaceExpressionWeightsFBinstance allocated on the specifiedMemoryStack.static intnconfidenceCount(long struct) Unsafe version ofconfidenceCount().static voidnconfidenceCount(long struct, int value) Sets the specified value to theconfidenceCountfield of the specifiedstruct.static FloatBuffernconfidences(long struct) Unsafe version ofconfidences.static voidnconfidences(long struct, FloatBuffer value) Unsafe version ofconfidences.longnext()next(long value) Sets the specified value to thenextfield.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static XrFaceExpressionStatusFBnstatus(long struct) Unsafe version ofstatus().static voidnstatus(long struct, XrFaceExpressionStatusFB value) Unsafe version ofstatus.static longntime(long struct) Unsafe version oftime().static voidntime(long struct, long value) Unsafe version oftime.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static intnweightCount(long struct) Unsafe version ofweightCount().static voidnweightCount(long struct, int value) Sets the specified value to theweightCountfield of the specifiedstruct.static FloatBuffernweights(long struct) Unsafe version ofweights.static voidnweights(long struct, FloatBuffer value) Unsafe version ofweights.set(int type, long next, FloatBuffer weights, FloatBuffer confidences, XrFaceExpressionStatusFB status, long time) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).status()status(Consumer<XrFaceExpressionStatusFB> consumer) Passes thestatusfield to the specifiedConsumer.status(XrFaceExpressionStatusFB value) Copies the specifiedXrFaceExpressionStatusFBto thestatusfield.longtime()time(long value) Sets the specified value to thetimefield.inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_FACE_EXPRESSION_WEIGHTS_FBvalue to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intweights()weights(FloatBuffer value) Sets the address of the specifiedFloatBufferto theweightsfield.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. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
WEIGHTCOUNT
public static final int WEIGHTCOUNTThe struct member offsets. -
WEIGHTS
public static final int WEIGHTSThe struct member offsets. -
CONFIDENCECOUNT
public static final int CONFIDENCECOUNTThe struct member offsets. -
CONFIDENCES
public static final int CONFIDENCESThe struct member offsets. -
STATUS
public static final int STATUSThe struct member offsets. -
TIME
public static final int TIMEThe struct member offsets.
-
-
Constructor Details
-
XrFaceExpressionWeightsFB
Creates aXrFaceExpressionWeightsFBinstance 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<XrFaceExpressionWeightsFB>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
weightCount
public int weightCount()- Returns:
- the value of the
weightCountfield.
-
weights
- Returns:
- a
FloatBufferview of the data pointed to by theweightsfield.
-
confidenceCount
public int confidenceCount()- Returns:
- the value of the
confidenceCountfield.
-
confidences
- Returns:
- a
FloatBufferview of the data pointed to by theconfidencesfield.
-
status
- Returns:
- a
XrFaceExpressionStatusFBview of thestatusfield.
-
time
public long time()- Returns:
- the value of the
timefield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_FACE_EXPRESSION_WEIGHTS_FBvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
weights
Sets the address of the specifiedFloatBufferto theweightsfield. -
confidences
Sets the address of the specifiedFloatBufferto theconfidencesfield. -
status
Copies the specifiedXrFaceExpressionStatusFBto thestatusfield. -
status
Passes thestatusfield to the specifiedConsumer. -
time
Sets the specified value to thetimefield. -
set
public XrFaceExpressionWeightsFB set(int type, long next, FloatBuffer weights, FloatBuffer confidences, XrFaceExpressionStatusFB status, long time) 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 newXrFaceExpressionWeightsFBinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrFaceExpressionWeightsFBinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrFaceExpressionWeightsFBinstance allocated withBufferUtils. -
create
Returns a newXrFaceExpressionWeightsFBinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrFaceExpressionWeightsFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrFaceExpressionWeightsFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrFaceExpressionWeightsFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrFaceExpressionWeightsFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrFaceExpressionWeightsFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrFaceExpressionWeightsFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrFaceExpressionWeightsFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrFaceExpressionWeightsFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
nweightCount
public static int nweightCount(long struct) Unsafe version ofweightCount(). -
nweights
Unsafe version ofweights. -
nconfidenceCount
public static int nconfidenceCount(long struct) Unsafe version ofconfidenceCount(). -
nconfidences
Unsafe version ofconfidences. -
nstatus
Unsafe version ofstatus(). -
ntime
public static long ntime(long struct) Unsafe version oftime(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nweightCount
public static void nweightCount(long struct, int value) Sets the specified value to theweightCountfield of the specifiedstruct. -
nweights
Unsafe version ofweights. -
nconfidenceCount
public static void nconfidenceCount(long struct, int value) Sets the specified value to theconfidenceCountfield of the specifiedstruct. -
nconfidences
Unsafe version ofconfidences. -
nstatus
Unsafe version ofstatus. -
ntime
public static void ntime(long struct, long value) Unsafe version oftime. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-