Class XrFaceExpressionWeights2FB

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrFaceExpressionWeights2FB extends Struct<XrFaceExpressionWeights2FB> implements NativeResource

 struct XrFaceExpressionWeights2FB {
     XrStructureType type;
     void * next;
     uint32_t weightCount;
     float * weights;
     uint32_t confidenceCount;
     float * confidences;
     XrBool32 isValid;
     XrBool32 isEyeFollowingBlendshapesValid;
     XrFaceTrackingDataSource2FB dataSource;
     XrTime time;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • WEIGHTCOUNT

      public static final int WEIGHTCOUNT
      The struct member offsets.
    • WEIGHTS

      public static final int WEIGHTS
      The struct member offsets.
    • CONFIDENCECOUNT

      public static final int CONFIDENCECOUNT
      The struct member offsets.
    • CONFIDENCES

      public static final int CONFIDENCES
      The struct member offsets.
    • ISVALID

      public static final int ISVALID
      The struct member offsets.
    • ISEYEFOLLOWINGBLENDSHAPESVALID

      public static final int ISEYEFOLLOWINGBLENDSHAPESVALID
      The struct member offsets.
    • DATASOURCE

      public static final int DATASOURCE
      The struct member offsets.
    • TIME

      public static final int TIME
      The struct member offsets.
  • Constructor Details

    • XrFaceExpressionWeights2FB

      public XrFaceExpressionWeights2FB(ByteBuffer container)
      Creates a XrFaceExpressionWeights2FB instance at the current position of the specified ByteBuffer 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
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XrFaceExpressionWeights2FB>
    • type

      public int type()
      Returns:
      the value of the type field.
    • next

      public long next()
      Returns:
      the value of the next field.
    • weightCount

      public int weightCount()
      Returns:
      the value of the weightCount field.
    • weights

      public FloatBuffer weights()
      Returns:
      a FloatBuffer view of the data pointed to by the weights field.
    • confidenceCount

      public int confidenceCount()
      Returns:
      the value of the confidenceCount field.
    • confidences

      public FloatBuffer confidences()
      Returns:
      a FloatBuffer view of the data pointed to by the confidences field.
    • isValid

      public boolean isValid()
      Returns:
      the value of the isValid field.
    • isEyeFollowingBlendshapesValid

      public boolean isEyeFollowingBlendshapesValid()
      Returns:
      the value of the isEyeFollowingBlendshapesValid field.
    • dataSource

      public int dataSource()
      Returns:
      the value of the dataSource field.
    • time

      public long time()
      Returns:
      the value of the time field.
    • type

      public XrFaceExpressionWeights2FB type(int value)
      Sets the specified value to the type field.
    • type$Default

      public XrFaceExpressionWeights2FB type$Default()
      Sets the TYPE_FACE_EXPRESSION_WEIGHTS2_FB value to the type field.
    • next

      public XrFaceExpressionWeights2FB next(long value)
      Sets the specified value to the next field.
    • weights

      public XrFaceExpressionWeights2FB weights(FloatBuffer value)
      Sets the address of the specified FloatBuffer to the weights field.
    • confidences

      public XrFaceExpressionWeights2FB confidences(FloatBuffer value)
      Sets the address of the specified FloatBuffer to the confidences field.
    • isValid

      public XrFaceExpressionWeights2FB isValid(boolean value)
      Sets the specified value to the isValid field.
    • isEyeFollowingBlendshapesValid

      public XrFaceExpressionWeights2FB isEyeFollowingBlendshapesValid(boolean value)
      Sets the specified value to the isEyeFollowingBlendshapesValid field.
    • dataSource

      public XrFaceExpressionWeights2FB dataSource(int value)
      Sets the specified value to the dataSource field.
    • time

      public XrFaceExpressionWeights2FB time(long value)
      Sets the specified value to the time field.
    • set

      public XrFaceExpressionWeights2FB set(int type, long next, FloatBuffer weights, FloatBuffer confidences, boolean isValid, boolean isEyeFollowingBlendshapesValid, int dataSource, 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

      public static XrFaceExpressionWeights2FB malloc()
      Returns a new XrFaceExpressionWeights2FB instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static XrFaceExpressionWeights2FB calloc()
      Returns a new XrFaceExpressionWeights2FB instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static XrFaceExpressionWeights2FB create()
      Returns a new XrFaceExpressionWeights2FB instance allocated with BufferUtils.
    • create

      public static XrFaceExpressionWeights2FB create(long address)
      Returns a new XrFaceExpressionWeights2FB instance for the specified memory address.
    • createSafe

      public static @Nullable XrFaceExpressionWeights2FB createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrFaceExpressionWeights2FB.Buffer malloc(int capacity)
      Returns a new XrFaceExpressionWeights2FB.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrFaceExpressionWeights2FB.Buffer calloc(int capacity)
      Returns a new XrFaceExpressionWeights2FB.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrFaceExpressionWeights2FB.Buffer create(int capacity)
      Returns a new XrFaceExpressionWeights2FB.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrFaceExpressionWeights2FB.Buffer create(long address, int capacity)
      Create a XrFaceExpressionWeights2FB.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrFaceExpressionWeights2FB.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrFaceExpressionWeights2FB malloc(MemoryStack stack)
      Returns a new XrFaceExpressionWeights2FB instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static XrFaceExpressionWeights2FB calloc(MemoryStack stack)
      Returns a new XrFaceExpressionWeights2FB instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static XrFaceExpressionWeights2FB.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new XrFaceExpressionWeights2FB.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrFaceExpressionWeights2FB.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrFaceExpressionWeights2FB.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nnext

      public static long nnext(long struct)
      Unsafe version of next().
    • nweightCount

      public static int nweightCount(long struct)
      Unsafe version of weightCount().
    • nweights

      public static FloatBuffer nweights(long struct)
      Unsafe version of weights.
    • nconfidenceCount

      public static int nconfidenceCount(long struct)
      Unsafe version of confidenceCount().
    • nconfidences

      public static FloatBuffer nconfidences(long struct)
      Unsafe version of confidences.
    • nisValid

      public static int nisValid(long struct)
      Unsafe version of isValid().
    • nisEyeFollowingBlendshapesValid

      public static int nisEyeFollowingBlendshapesValid(long struct)
    • ndataSource

      public static int ndataSource(long struct)
      Unsafe version of dataSource().
    • ntime

      public static long ntime(long struct)
      Unsafe version of time().
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nnext

      public static void nnext(long struct, long value)
      Unsafe version of next.
    • nweightCount

      public static void nweightCount(long struct, int value)
      Sets the specified value to the weightCount field of the specified struct.
    • nweights

      public static void nweights(long struct, FloatBuffer value)
      Unsafe version of weights.
    • nconfidenceCount

      public static void nconfidenceCount(long struct, int value)
      Sets the specified value to the confidenceCount field of the specified struct.
    • nconfidences

      public static void nconfidences(long struct, FloatBuffer value)
      Unsafe version of confidences.
    • nisValid

      public static void nisValid(long struct, int value)
      Unsafe version of isValid.
    • nisEyeFollowingBlendshapesValid

      public static void nisEyeFollowingBlendshapesValid(long struct, int value)
    • ndataSource

      public static void ndataSource(long struct, int value)
      Unsafe version of dataSource.
    • ntime

      public static void ntime(long struct, long value)
      Unsafe version of time.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate