Package org.lwjgl.openxr
Class XrUuidEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrUuidEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrUuidEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceUniversally Unique Identifier.Description
The structure is composed of 16 octets, with the size and order of the fields defined in RFC 4122 section 4.1.2.
Valid Usage (Implicit)
- The
XR_EXT_uuidextension must be enabled prior to usingXrUuidEXT
Layout
struct XrUuidEXT { uint8_tdata()[XR_UUID_SIZE_EXT]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrUuidEXT.BufferAn array ofXrUuidEXTstructs.
-
Constructor Summary
Constructors Constructor Description XrUuidEXT(java.nio.ByteBuffer container)Creates aXrUuidEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrUuidEXTcalloc()Returns a newXrUuidEXTinstance allocated withmemCalloc.static XrUuidEXT.Buffercalloc(int capacity)Returns a newXrUuidEXT.Bufferinstance allocated withmemCalloc.static XrUuidEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrUuidEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrUuidEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrUuidEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrUuidEXTcreate()Returns a newXrUuidEXTinstance allocated withBufferUtils.static XrUuidEXT.Buffercreate(int capacity)Returns a newXrUuidEXT.Bufferinstance allocated withBufferUtils.static XrUuidEXTcreate(long address)Returns a newXrUuidEXTinstance for the specified memory address.static XrUuidEXT.Buffercreate(long address, int capacity)Create aXrUuidEXT.Bufferinstance at the specified memory.static XrUuidEXTcreateSafe(long address)static XrUuidEXT.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferdata()a 128-bit Universally Unique Identifier.bytedata(int index)a 128-bit Universally Unique Identifier.XrUuidEXTdata(int index, byte value)Sets the specified value at the specified index of thedata()field.XrUuidEXTdata(java.nio.ByteBuffer value)Copies the specifiedByteBufferto thedata()field.static XrUuidEXTmalloc()Returns a newXrUuidEXTinstance allocated withmemAlloc.static XrUuidEXT.Buffermalloc(int capacity)Returns a newXrUuidEXT.Bufferinstance allocated withmemAlloc.static XrUuidEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrUuidEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrUuidEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrUuidEXTinstance allocated on the specifiedMemoryStack.static java.nio.ByteBufferndata(long struct)Unsafe version ofdata().static bytendata(long struct, int index)Unsafe version ofdata.static voidndata(long struct, int index, byte value)Unsafe version ofdata.static voidndata(long struct, java.nio.ByteBuffer value)Unsafe version ofdata.XrUuidEXTset(XrUuidEXT src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrUuidEXT
public XrUuidEXT(java.nio.ByteBuffer container)
Creates aXrUuidEXTinstance 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
-
data
public java.nio.ByteBuffer data() public byte data(int index)
a 128-bit Universally Unique Identifier.
-
data
public XrUuidEXT data(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto thedata()field.
-
data
public XrUuidEXT data(int index, byte value)
Sets the specified value at the specified index of thedata()field.
-
set
public XrUuidEXT set(XrUuidEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrUuidEXT malloc()
Returns a newXrUuidEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrUuidEXT calloc()
Returns a newXrUuidEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrUuidEXT create()
Returns a newXrUuidEXTinstance allocated withBufferUtils.
-
create
public static XrUuidEXT create(long address)
Returns a newXrUuidEXTinstance for the specified memory address.
-
createSafe
@Nullable public static XrUuidEXT createSafe(long address)
-
malloc
public static XrUuidEXT.Buffer malloc(int capacity)
Returns a newXrUuidEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrUuidEXT.Buffer calloc(int capacity)
Returns a newXrUuidEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrUuidEXT.Buffer create(int capacity)
Returns a newXrUuidEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrUuidEXT.Buffer create(long address, int capacity)
Create aXrUuidEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrUuidEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrUuidEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrUuidEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrUuidEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrUuidEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrUuidEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrUuidEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrUuidEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrUuidEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ndata
public static java.nio.ByteBuffer ndata(long struct)
Unsafe version ofdata().
-
ndata
public static byte ndata(long struct, int index)Unsafe version ofdata.
-
ndata
public static void ndata(long struct, java.nio.ByteBuffer value)Unsafe version ofdata.
-
ndata
public static void ndata(long struct, int index, byte value)Unsafe version ofdata.
-
-