Package org.lwjgl.openxr
Class XrSpatialAnchorPersistenceNameMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSpatialAnchorPersistenceNameMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSpatialAnchorPersistenceNameMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe name to identify a Spatial anchor persistence operations.Description
If an
XrSpatialAnchorPersistenceNameMSFTwith an emptynamevalue is passed to any function as a parameter, that function must returnERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT.Valid Usage (Implicit)
- The
XR_MSFT_spatial_anchor_persistenceextension must be enabled prior to usingXrSpatialAnchorPersistenceNameMSFT namemust be a null-terminated UTF-8 string whose length is less than or equal toMAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT
See Also
XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT,XrSpatialAnchorPersistenceInfoMSFT,ClearSpatialAnchorStoreMSFT,EnumeratePersistedSpatialAnchorNamesMSFT,UnpersistSpatialAnchorMSFTLayout
struct XrSpatialAnchorPersistenceNameMSFT { charname()[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSpatialAnchorPersistenceNameMSFT.BufferAn array ofXrSpatialAnchorPersistenceNameMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrSpatialAnchorPersistenceNameMSFT(java.nio.ByteBuffer container)Creates aXrSpatialAnchorPersistenceNameMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSpatialAnchorPersistenceNameMSFTcalloc()Returns a newXrSpatialAnchorPersistenceNameMSFTinstance allocated withmemCalloc.static XrSpatialAnchorPersistenceNameMSFT.Buffercalloc(int capacity)Returns a newXrSpatialAnchorPersistenceNameMSFT.Bufferinstance allocated withmemCalloc.static XrSpatialAnchorPersistenceNameMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSpatialAnchorPersistenceNameMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialAnchorPersistenceNameMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSpatialAnchorPersistenceNameMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialAnchorPersistenceNameMSFTcreate()Returns a newXrSpatialAnchorPersistenceNameMSFTinstance allocated withBufferUtils.static XrSpatialAnchorPersistenceNameMSFT.Buffercreate(int capacity)Returns a newXrSpatialAnchorPersistenceNameMSFT.Bufferinstance allocated withBufferUtils.static XrSpatialAnchorPersistenceNameMSFTcreate(long address)Returns a newXrSpatialAnchorPersistenceNameMSFTinstance for the specified memory address.static XrSpatialAnchorPersistenceNameMSFT.Buffercreate(long address, int capacity)Create aXrSpatialAnchorPersistenceNameMSFT.Bufferinstance at the specified memory.static XrSpatialAnchorPersistenceNameMSFTcreateSafe(long address)static XrSpatialAnchorPersistenceNameMSFT.BuffercreateSafe(long address, int capacity)static XrSpatialAnchorPersistenceNameMSFTmalloc()Returns a newXrSpatialAnchorPersistenceNameMSFTinstance allocated withmemAlloc.static XrSpatialAnchorPersistenceNameMSFT.Buffermalloc(int capacity)Returns a newXrSpatialAnchorPersistenceNameMSFT.Bufferinstance allocated withmemAlloc.static XrSpatialAnchorPersistenceNameMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSpatialAnchorPersistenceNameMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSpatialAnchorPersistenceNameMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSpatialAnchorPersistenceNameMSFTinstance allocated on the specifiedMemoryStack.java.nio.ByteBuffername()a null terminated character array of sizeMAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT.XrSpatialAnchorPersistenceNameMSFTname(java.nio.ByteBuffer value)Copies the specified encoded string to thename()field.java.lang.StringnameString()a null terminated character array of sizeMAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT.static java.nio.ByteBuffernname(long struct)Unsafe version ofname().static voidnname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.static java.lang.StringnnameString(long struct)Unsafe version ofnameString().XrSpatialAnchorPersistenceNameMSFTset(XrSpatialAnchorPersistenceNameMSFT src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrSpatialAnchorPersistenceNameMSFT
public XrSpatialAnchorPersistenceNameMSFT(java.nio.ByteBuffer container)
Creates aXrSpatialAnchorPersistenceNameMSFTinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
name, nameString
public java.nio.ByteBuffer name() public java.lang.String nameString()
a null terminated character array of sizeMAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT.
-
name
public XrSpatialAnchorPersistenceNameMSFT name(java.nio.ByteBuffer value)
Copies the specified encoded string to thename()field.
-
set
public XrSpatialAnchorPersistenceNameMSFT set(XrSpatialAnchorPersistenceNameMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSpatialAnchorPersistenceNameMSFT malloc()
Returns a newXrSpatialAnchorPersistenceNameMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSpatialAnchorPersistenceNameMSFT calloc()
Returns a newXrSpatialAnchorPersistenceNameMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSpatialAnchorPersistenceNameMSFT create()
Returns a newXrSpatialAnchorPersistenceNameMSFTinstance allocated withBufferUtils.
-
create
public static XrSpatialAnchorPersistenceNameMSFT create(long address)
Returns a newXrSpatialAnchorPersistenceNameMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSpatialAnchorPersistenceNameMSFT createSafe(long address)
-
malloc
public static XrSpatialAnchorPersistenceNameMSFT.Buffer malloc(int capacity)
Returns a newXrSpatialAnchorPersistenceNameMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSpatialAnchorPersistenceNameMSFT.Buffer calloc(int capacity)
Returns a newXrSpatialAnchorPersistenceNameMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSpatialAnchorPersistenceNameMSFT.Buffer create(int capacity)
Returns a newXrSpatialAnchorPersistenceNameMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSpatialAnchorPersistenceNameMSFT.Buffer create(long address, int capacity)
Create aXrSpatialAnchorPersistenceNameMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSpatialAnchorPersistenceNameMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSpatialAnchorPersistenceNameMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSpatialAnchorPersistenceNameMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSpatialAnchorPersistenceNameMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSpatialAnchorPersistenceNameMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSpatialAnchorPersistenceNameMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSpatialAnchorPersistenceNameMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSpatialAnchorPersistenceNameMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSpatialAnchorPersistenceNameMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString().
-
nname
public static void nname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.
-
-