Class XrFaceStateANDROID.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new XrFaceStateANDROID.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 XrFaceStateANDROID.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.
    • parametersCapacityInput

      public int parametersCapacityInput()
      Returns:
      the value of the parametersCapacityInput field.
    • parametersCountOutput

      public int parametersCountOutput()
      Returns:
      the value of the parametersCountOutput field.
    • parameters

      public @Nullable FloatBuffer parameters()
      Returns:
      a FloatBuffer view of the data pointed to by the parameters field.
    • faceTrackingState

      public int faceTrackingState()
      Returns:
      the value of the faceTrackingState field.
    • sampleTime

      public long sampleTime()
      Returns:
      the value of the sampleTime field.
    • isValid

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

      public int regionConfidencesCapacityInput()
      Returns:
      the value of the regionConfidencesCapacityInput field.
    • regionConfidencesCountOutput

      public int regionConfidencesCountOutput()
      Returns:
      the value of the regionConfidencesCountOutput field.
    • regionConfidences

      public @Nullable FloatBuffer regionConfidences()
      Returns:
      a FloatBuffer view of the data pointed to by the regionConfidences field.
    • type

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

      public XrFaceStateANDROID.Buffer type$Default()
      Sets the TYPE_FACE_STATE_ANDROID value to the type field.
    • next

      public XrFaceStateANDROID.Buffer next(long value)
      Sets the specified value to the next field.
    • parametersCapacityInput

      public XrFaceStateANDROID.Buffer parametersCapacityInput(int value)
      Sets the specified value to the parametersCapacityInput field.
    • parametersCountOutput

      public XrFaceStateANDROID.Buffer parametersCountOutput(int value)
      Sets the specified value to the parametersCountOutput field.
    • parameters

      public XrFaceStateANDROID.Buffer parameters(@Nullable FloatBuffer value)
      Sets the address of the specified FloatBuffer to the parameters field.
    • faceTrackingState

      public XrFaceStateANDROID.Buffer faceTrackingState(int value)
      Sets the specified value to the faceTrackingState field.
    • sampleTime

      public XrFaceStateANDROID.Buffer sampleTime(long value)
      Sets the specified value to the sampleTime field.
    • isValid

      public XrFaceStateANDROID.Buffer isValid(boolean value)
      Sets the specified value to the isValid field.
    • regionConfidencesCapacityInput

      public XrFaceStateANDROID.Buffer regionConfidencesCapacityInput(int value)
      Sets the specified value to the regionConfidencesCapacityInput field.
    • regionConfidencesCountOutput

      public XrFaceStateANDROID.Buffer regionConfidencesCountOutput(int value)
      Sets the specified value to the regionConfidencesCountOutput field.
    • regionConfidences

      public XrFaceStateANDROID.Buffer regionConfidences(@Nullable FloatBuffer value)
      Sets the address of the specified FloatBuffer to the regionConfidences field.