Class XrFacialSimulationDataBD

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrFacialSimulationDataBD extends Struct<XrFacialSimulationDataBD> implements NativeResource

 struct XrFacialSimulationDataBD {
     XrStructureType type;
     void * next;
     uint32_t faceExpressionWeightCount;
     float * faceExpressionWeights;
     XrBool32 isUpperFaceDataValid;
     XrBool32 isLowerFaceDataValid;
     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.
    • FACEEXPRESSIONWEIGHTCOUNT

      public static final int FACEEXPRESSIONWEIGHTCOUNT
      The struct member offsets.
    • FACEEXPRESSIONWEIGHTS

      public static final int FACEEXPRESSIONWEIGHTS
      The struct member offsets.
    • ISUPPERFACEDATAVALID

      public static final int ISUPPERFACEDATAVALID
      The struct member offsets.
    • ISLOWERFACEDATAVALID

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

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

    • XrFacialSimulationDataBD

      public XrFacialSimulationDataBD(ByteBuffer container)
      Creates a XrFacialSimulationDataBD 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<XrFacialSimulationDataBD>
    • type

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

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

      public int faceExpressionWeightCount()
      Returns:
      the value of the faceExpressionWeightCount field.
    • faceExpressionWeights

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

      public boolean isUpperFaceDataValid()
      Returns:
      the value of the isUpperFaceDataValid field.
    • isLowerFaceDataValid

      public boolean isLowerFaceDataValid()
      Returns:
      the value of the isLowerFaceDataValid field.
    • time

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

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

      public XrFacialSimulationDataBD type$Default()
      Sets the TYPE_FACIAL_SIMULATION_DATA_BD value to the type field.
    • next

      public XrFacialSimulationDataBD next(long value)
      Sets the specified value to the next field.
    • faceExpressionWeights

      public XrFacialSimulationDataBD faceExpressionWeights(FloatBuffer value)
      Sets the address of the specified FloatBuffer to the faceExpressionWeights field.
    • isUpperFaceDataValid

      public XrFacialSimulationDataBD isUpperFaceDataValid(boolean value)
      Sets the specified value to the isUpperFaceDataValid field.
    • isLowerFaceDataValid

      public XrFacialSimulationDataBD isLowerFaceDataValid(boolean value)
      Sets the specified value to the isLowerFaceDataValid field.
    • time

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

      public XrFacialSimulationDataBD set(int type, long next, FloatBuffer faceExpressionWeights, boolean isUpperFaceDataValid, boolean isLowerFaceDataValid, 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 XrFacialSimulationDataBD malloc()
      Returns a new XrFacialSimulationDataBD instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrFacialSimulationDataBD.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrFacialSimulationDataBD.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().
    • nfaceExpressionWeightCount

      public static int nfaceExpressionWeightCount(long struct)
      Unsafe version of faceExpressionWeightCount().
    • nfaceExpressionWeights

      public static FloatBuffer nfaceExpressionWeights(long struct)
      Unsafe version of faceExpressionWeights.
    • nisUpperFaceDataValid

      public static int nisUpperFaceDataValid(long struct)
      Unsafe version of isUpperFaceDataValid().
    • nisLowerFaceDataValid

      public static int nisLowerFaceDataValid(long struct)
      Unsafe version of isLowerFaceDataValid().
    • 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.
    • nfaceExpressionWeightCount

      public static void nfaceExpressionWeightCount(long struct, int value)
      Sets the specified value to the faceExpressionWeightCount field of the specified struct.
    • nfaceExpressionWeights

      public static void nfaceExpressionWeights(long struct, FloatBuffer value)
      Unsafe version of faceExpressionWeights.
    • nisUpperFaceDataValid

      public static void nisUpperFaceDataValid(long struct, int value)
      Unsafe version of isUpperFaceDataValid.
    • nisLowerFaceDataValid

      public static void nisLowerFaceDataValid(long struct, int value)
      Unsafe version of isLowerFaceDataValid.
    • 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