Class XrFaceExpressionWeights2FB.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<XrFaceExpressionWeights2FB>, NativeResource, Pointer
Enclosing class:
XrFaceExpressionWeights2FB

public static class XrFaceExpressionWeights2FB.Buffer extends StructBuffer<XrFaceExpressionWeights2FB,XrFaceExpressionWeights2FB.Buffer> implements NativeResource
An array of XrFaceExpressionWeights2FB structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new XrFaceExpressionWeights2FB.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XrFaceExpressionWeights2FB.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • 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.Buffer type(int value)
      Sets the specified value to the type field.
    • type$Default

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

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

      Sets the address of the specified FloatBuffer to the weights field.
    • confidences

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

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

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

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

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