Class XrSpatialAnchorsPublishInfoML

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSpatialAnchorsPublishInfoML>
org.lwjgl.openxr.XrSpatialAnchorsPublishInfoML
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrSpatialAnchorsPublishInfoML extends org.lwjgl.system.Struct<XrSpatialAnchorsPublishInfoML> implements org.lwjgl.system.NativeResource
Structure used to list the anchors that need to be published.
Valid Usage (Implicit)
See Also

PublishSpatialAnchorsAsyncML, PublishSpatialAnchorsCompleteML

Layout


 struct XrSpatialAnchorsPublishInfoML {
     XrStructureType type();
     void const * next();
     uint32_t anchorCount();
     XrSpace const * anchors();
     uint64_t expiration();
 }
  • 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.
    • ANCHORCOUNT

      public static final int ANCHORCOUNT
      The struct member offsets.
    • ANCHORS

      public static final int ANCHORS
      The struct member offsets.
    • EXPIRATION

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

    • XrSpatialAnchorsPublishInfoML

      public XrSpatialAnchorsPublishInfoML(ByteBuffer container)
      Creates a XrSpatialAnchorsPublishInfoML 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<XrSpatialAnchorsPublishInfoML>
    • type

      public int type()
      the XrStructureType of this structure.
    • next

      public long next()
      NULL or a pointer to the next structure in a structure chain.
    • anchorCount

      public int anchorCount()
      the number of anchors in the anchors array.
    • anchors

      public org.lwjgl.PointerBuffer anchors()
      an array of XrSpace.
    • expiration

      public long expiration()
      an uint64_t, is the time in seconds since epoch after which these anchors may expire. The system may retain the anchors longer but should retain the anchors at least until this timestamp. Use 0 or INFINITE_DURATION to create an anchor that does not expire.
    • type

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

      public XrSpatialAnchorsPublishInfoML type$Default()
      Sets the TYPE_SPATIAL_ANCHORS_PUBLISH_INFO_ML value to the type() field.
    • next

      public XrSpatialAnchorsPublishInfoML next(long value)
      Sets the specified value to the next() field.
    • anchors

      public XrSpatialAnchorsPublishInfoML anchors(org.lwjgl.PointerBuffer value)
      Sets the address of the specified PointerBuffer to the anchors() field.
    • expiration

      public XrSpatialAnchorsPublishInfoML expiration(long value)
      Sets the specified value to the expiration() field.
    • set

      public XrSpatialAnchorsPublishInfoML set(int type, long next, org.lwjgl.PointerBuffer anchors, long expiration)
      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 XrSpatialAnchorsPublishInfoML malloc()
      Returns a new XrSpatialAnchorsPublishInfoML instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrSpatialAnchorsPublishInfoML.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrSpatialAnchorsPublishInfoML.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().
    • nanchorCount

      public static int nanchorCount(long struct)
      Unsafe version of anchorCount().
    • nanchors

      public static org.lwjgl.PointerBuffer nanchors(long struct)
      Unsafe version of anchors.
    • nexpiration

      public static long nexpiration(long struct)
      Unsafe version of expiration().
    • 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.
    • nanchorCount

      public static void nanchorCount(long struct, int value)
      Sets the specified value to the anchorCount field of the specified struct.
    • nanchors

      public static void nanchors(long struct, org.lwjgl.PointerBuffer value)
      Unsafe version of anchors.
    • nexpiration

      public static void nexpiration(long struct, long value)
      Unsafe version of expiration.
    • validate

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