Class XrBodyJointLocationsFB

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrBodyJointLocationsFB extends Struct<XrBodyJointLocationsFB> implements NativeResource

 struct XrBodyJointLocationsFB {
     XrStructureType type;
     void * next;
     XrBool32 isActive;
     float confidence;
     uint32_t jointCount;
     {@link XrBodyJointLocationFB XrBodyJointLocationFB} * jointLocations;
     uint32_t skeletonChangedCount;
     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.
    • ISACTIVE

      public static final int ISACTIVE
      The struct member offsets.
    • CONFIDENCE

      public static final int CONFIDENCE
      The struct member offsets.
    • JOINTCOUNT

      public static final int JOINTCOUNT
      The struct member offsets.
    • JOINTLOCATIONS

      public static final int JOINTLOCATIONS
      The struct member offsets.
    • SKELETONCHANGEDCOUNT

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

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

    • XrBodyJointLocationsFB

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

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

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

      public boolean isActive()
      Returns:
      the value of the isActive field.
    • confidence

      public float confidence()
      Returns:
      the value of the confidence field.
    • jointCount

      public int jointCount()
      Returns:
      the value of the jointCount field.
    • jointLocations

      public XrBodyJointLocationFB.Buffer jointLocations()
      Returns:
      a XrBodyJointLocationFB.Buffer view of the struct array pointed to by the jointLocations field.
    • skeletonChangedCount

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

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

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

      public XrBodyJointLocationsFB type$Default()
      Sets the TYPE_BODY_JOINT_LOCATIONS_FB value to the type field.
    • next

      public XrBodyJointLocationsFB next(long value)
      Sets the specified value to the next field.
    • isActive

      public XrBodyJointLocationsFB isActive(boolean value)
      Sets the specified value to the isActive field.
    • confidence

      public XrBodyJointLocationsFB confidence(float value)
      Sets the specified value to the confidence field.
    • jointLocations

      Sets the address of the specified XrBodyJointLocationFB.Buffer to the jointLocations field.
    • skeletonChangedCount

      public XrBodyJointLocationsFB skeletonChangedCount(int value)
      Sets the specified value to the skeletonChangedCount field.
    • time

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

      public XrBodyJointLocationsFB set(int type, long next, boolean isActive, float confidence, XrBodyJointLocationFB.Buffer jointLocations, int skeletonChangedCount, 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 XrBodyJointLocationsFB malloc()
      Returns a new XrBodyJointLocationsFB instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nisActive(long struct)
      Unsafe version of isActive().
    • nconfidence

      public static float nconfidence(long struct)
      Unsafe version of confidence().
    • njointCount

      public static int njointCount(long struct)
      Unsafe version of jointCount().
    • njointLocations

      public static XrBodyJointLocationFB.Buffer njointLocations(long struct)
      Unsafe version of jointLocations().
    • nskeletonChangedCount

      public static int nskeletonChangedCount(long struct)
      Unsafe version of skeletonChangedCount().
    • 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.
    • nisActive

      public static void nisActive(long struct, int value)
      Unsafe version of isActive.
    • nconfidence

      public static void nconfidence(long struct, float value)
      Unsafe version of confidence.
    • njointCount

      public static void njointCount(long struct, int value)
      Sets the specified value to the jointCount field of the specified struct.
    • njointLocations

      public static void njointLocations(long struct, XrBodyJointLocationFB.Buffer value)
      Unsafe version of jointLocations.
    • nskeletonChangedCount

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