Package org.lwjgl.openxr
Class XrSpatialPersistenceDataEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrSpatialPersistenceDataEXT
extends Struct<XrSpatialPersistenceDataEXT>
implements NativeResource
struct XrSpatialPersistenceDataEXT {
XrUuid persistUuid;
XrSpatialPersistenceStateEXT persistState;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSpatialPersistenceDataEXT(ByteBuffer container) Creates aXrSpatialPersistenceDataEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSpatialPersistenceDataEXTcalloc()Returns a newXrSpatialPersistenceDataEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrSpatialPersistenceDataEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrSpatialPersistenceDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialPersistenceDataEXTcalloc(MemoryStack stack) Returns a newXrSpatialPersistenceDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialPersistenceDataEXTcreate()Returns a newXrSpatialPersistenceDataEXTinstance allocated withBufferUtils.create(int capacity) Returns a newXrSpatialPersistenceDataEXT.Bufferinstance allocated withBufferUtils.static XrSpatialPersistenceDataEXTcreate(long address) Returns a newXrSpatialPersistenceDataEXTinstance for the specified memory address.create(long address, int capacity) Create aXrSpatialPersistenceDataEXT.Bufferinstance at the specified memory.static @Nullable XrSpatialPersistenceDataEXTcreateSafe(long address) static @Nullable XrSpatialPersistenceDataEXT.BuffercreateSafe(long address, int capacity) static XrSpatialPersistenceDataEXTmalloc()Returns a newXrSpatialPersistenceDataEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrSpatialPersistenceDataEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrSpatialPersistenceDataEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrSpatialPersistenceDataEXTmalloc(MemoryStack stack) Returns a newXrSpatialPersistenceDataEXTinstance allocated on the specifiedMemoryStack.static intnpersistState(long struct) Unsafe version ofpersistState().static voidnpersistState(long struct, int value) Unsafe version ofpersistState.static XrUuidnpersistUuid(long struct) Unsafe version ofpersistUuid().static voidnpersistUuid(long struct, XrUuid value) Unsafe version ofpersistUuid.intpersistState(int value) Sets the specified value to thepersistStatefield.persistUuid(Consumer<XrUuid> consumer) Passes thepersistUuidfield to the specifiedConsumer.persistUuid(XrUuid value) Copies the specifiedXrUuidto thepersistUuidfield.Copies the specified struct data to this struct.Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PERSISTUUID
public static final int PERSISTUUIDThe struct member offsets. -
PERSISTSTATE
public static final int PERSISTSTATEThe struct member offsets.
-
-
Constructor Details
-
XrSpatialPersistenceDataEXT
Creates aXrSpatialPersistenceDataEXTinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrSpatialPersistenceDataEXT>
-
persistUuid
- Returns:
- a
XrUuidview of thepersistUuidfield.
-
persistState
public int persistState()- Returns:
- the value of the
persistStatefield.
-
persistUuid
Copies the specifiedXrUuidto thepersistUuidfield. -
persistUuid
Passes thepersistUuidfield to the specifiedConsumer. -
persistState
Sets the specified value to thepersistStatefield. -
set
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
Returns a newXrSpatialPersistenceDataEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSpatialPersistenceDataEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSpatialPersistenceDataEXTinstance allocated withBufferUtils. -
create
Returns a newXrSpatialPersistenceDataEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSpatialPersistenceDataEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSpatialPersistenceDataEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSpatialPersistenceDataEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSpatialPersistenceDataEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSpatialPersistenceDataEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSpatialPersistenceDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSpatialPersistenceDataEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSpatialPersistenceDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
npersistUuid
Unsafe version ofpersistUuid(). -
npersistState
public static int npersistState(long struct) Unsafe version ofpersistState(). -
npersistUuid
Unsafe version ofpersistUuid. -
npersistState
public static void npersistState(long struct, int value) Unsafe version ofpersistState.
-