Package org.lwjgl.openxr
Class XrUuidMSFT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrUuidMSFT {
uint8_t bytes[16];
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrUuidMSFT(ByteBuffer container) Creates aXrUuidMSFTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbytes()bytebytes(int index) bytes(int index, byte value) Sets the specified value at the specified index of thebytesfield.bytes(ByteBuffer value) Copies the specifiedByteBufferto thebytesfield.static XrUuidMSFTcalloc()Returns a newXrUuidMSFTinstance allocated withmemCalloc.static XrUuidMSFT.Buffercalloc(int capacity) Returns a newXrUuidMSFT.Bufferinstance allocated withmemCalloc.static XrUuidMSFT.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrUuidMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrUuidMSFTcalloc(MemoryStack stack) Returns a newXrUuidMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrUuidMSFTcreate()Returns a newXrUuidMSFTinstance allocated withBufferUtils.static XrUuidMSFT.Buffercreate(int capacity) Returns a newXrUuidMSFT.Bufferinstance allocated withBufferUtils.static XrUuidMSFTcreate(long address) Returns a newXrUuidMSFTinstance for the specified memory address.static XrUuidMSFT.Buffercreate(long address, int capacity) Create aXrUuidMSFT.Bufferinstance at the specified memory.static @Nullable XrUuidMSFTcreateSafe(long address) static @Nullable XrUuidMSFT.BuffercreateSafe(long address, int capacity) static XrUuidMSFTmalloc()Returns a newXrUuidMSFTinstance allocated withmemAlloc.static XrUuidMSFT.Buffermalloc(int capacity) Returns a newXrUuidMSFT.Bufferinstance allocated withmemAlloc.static XrUuidMSFT.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrUuidMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrUuidMSFTmalloc(MemoryStack stack) Returns a newXrUuidMSFTinstance allocated on the specifiedMemoryStack.static ByteBuffernbytes(long struct) Unsafe version ofbytes().static bytenbytes(long struct, int index) Unsafe version ofbytes.static voidnbytes(long struct, int index, byte value) Unsafe version ofbytes.static voidnbytes(long struct, ByteBuffer value) Unsafe version ofbytes.set(XrUuidMSFT src) Copies the specified struct data to this struct.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. -
BYTES
public static final int BYTESThe struct member offsets.
-
-
Constructor Details
-
XrUuidMSFT
Creates aXrUuidMSFTinstance 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<XrUuidMSFT>
-
bytes
- Returns:
- a
ByteBufferview of thebytesfield.
-
bytes
public byte bytes(int index) - Returns:
- the value at the specified index of the
bytesfield.
-
bytes
Copies the specifiedByteBufferto thebytesfield. -
bytes
Sets the specified value at the specified index of thebytesfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrUuidMSFTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrUuidMSFTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrUuidMSFTinstance allocated withBufferUtils. -
create
Returns a newXrUuidMSFTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrUuidMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrUuidMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrUuidMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrUuidMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrUuidMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrUuidMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrUuidMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrUuidMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nbytes
Unsafe version ofbytes(). -
nbytes
public static byte nbytes(long struct, int index) Unsafe version ofbytes. -
nbytes
Unsafe version ofbytes. -
nbytes
public static void nbytes(long struct, int index, byte value) Unsafe version ofbytes.
-