Package org.lwjgl.openxr
Class XrEventDataBuffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataBuffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataBuffer extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceEvent buffer.Valid Usage (Implicit)
typemust beTYPE_EVENT_DATA_BUFFERnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrEventDataBaseHeader,PollEventLayout
struct XrEventDataBuffer { XrStructureTypetype(); void const *next(); uint8_tvarying()[4000]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataBuffer.BufferAn array ofXrEventDataBufferstructs.
-
Constructor Summary
Constructors Constructor Description XrEventDataBuffer(java.nio.ByteBuffer container)Creates aXrEventDataBufferinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataBuffercalloc()Returns a newXrEventDataBufferinstance allocated withmemCalloc.static XrEventDataBuffer.Buffercalloc(int capacity)Returns a newXrEventDataBuffer.Bufferinstance allocated withmemCalloc.static XrEventDataBuffer.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataBuffercalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataBuffercreate()Returns a newXrEventDataBufferinstance allocated withBufferUtils.static XrEventDataBuffer.Buffercreate(int capacity)Returns a newXrEventDataBuffer.Bufferinstance allocated withBufferUtils.static XrEventDataBuffercreate(long address)Returns a newXrEventDataBufferinstance for the specified memory address.static XrEventDataBuffer.Buffercreate(long address, int capacity)Create aXrEventDataBuffer.Bufferinstance at the specified memory.static XrEventDataBuffercreateSafe(long address)static XrEventDataBuffer.BuffercreateSafe(long address, int capacity)static XrEventDataBuffermalloc()Returns a newXrEventDataBufferinstance allocated withmemAlloc.static XrEventDataBuffer.Buffermalloc(int capacity)Returns a newXrEventDataBuffer.Bufferinstance allocated withmemAlloc.static XrEventDataBuffer.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataBuffer.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataBuffermalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataBufferinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrEventDataBuffernext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.static java.nio.ByteBuffernvarying(long struct)Unsafe version ofvarying().static bytenvarying(long struct, int index)Unsafe version ofvarying.static voidnvarying(long struct, int index, byte value)Unsafe version ofvarying.static voidnvarying(long struct, java.nio.ByteBuffer value)Unsafe version ofvarying.XrEventDataBufferset(int type, long next, java.nio.ByteBuffer varying)Initializes this struct with the specified values.XrEventDataBufferset(XrEventDataBuffer src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrEventDataBuffertype(int value)Sets the specified value to thetype()field.XrEventDataBuffertype$Default()Sets theTYPE_EVENT_DATA_BUFFERvalue to thetype()field.java.nio.ByteBuffervarying()a fixed sized output buffer big enough to hold returned data elements for all specified event data types.bytevarying(int index)a fixed sized output buffer big enough to hold returned data elements for all specified event data types.XrEventDataBuffervarying(int index, byte value)Sets the specified value at the specified index of thevarying()field.XrEventDataBuffervarying(java.nio.ByteBuffer value)Copies the specifiedByteBufferto thevarying()field.
-
-
-
Constructor Detail
-
XrEventDataBuffer
public XrEventDataBuffer(java.nio.ByteBuffer container)
Creates aXrEventDataBufferinstance 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
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
varying
public java.nio.ByteBuffer varying() public byte varying(int index)
a fixed sized output buffer big enough to hold returned data elements for all specified event data types.
-
type
public XrEventDataBuffer type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrEventDataBuffer type$Default()
Sets theTYPE_EVENT_DATA_BUFFERvalue to thetype()field.
-
next
public XrEventDataBuffer next(long value)
Sets the specified value to thenext()field.
-
varying
public XrEventDataBuffer varying(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto thevarying()field.
-
varying
public XrEventDataBuffer varying(int index, byte value)
Sets the specified value at the specified index of thevarying()field.
-
set
public XrEventDataBuffer set(int type, long next, java.nio.ByteBuffer varying)
Initializes this struct with the specified values.
-
set
public XrEventDataBuffer set(XrEventDataBuffer src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataBuffer malloc()
Returns a newXrEventDataBufferinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataBuffer calloc()
Returns a newXrEventDataBufferinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataBuffer create()
Returns a newXrEventDataBufferinstance allocated withBufferUtils.
-
create
public static XrEventDataBuffer create(long address)
Returns a newXrEventDataBufferinstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataBuffer createSafe(long address)
-
malloc
public static XrEventDataBuffer.Buffer malloc(int capacity)
Returns a newXrEventDataBuffer.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataBuffer.Buffer calloc(int capacity)
Returns a newXrEventDataBuffer.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataBuffer.Buffer create(int capacity)
Returns a newXrEventDataBuffer.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataBuffer.Buffer create(long address, int capacity)
Create aXrEventDataBuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataBuffer.Buffer createSafe(long address, int capacity)
-
malloc
public static XrEventDataBuffer malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataBufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataBuffer calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataBuffer.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataBuffer.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataBuffer.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nvarying
public static java.nio.ByteBuffer nvarying(long struct)
Unsafe version ofvarying().
-
nvarying
public static byte nvarying(long struct, int index)Unsafe version ofvarying.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nvarying
public static void nvarying(long struct, java.nio.ByteBuffer value)Unsafe version ofvarying.
-
nvarying
public static void nvarying(long struct, int index, byte value)Unsafe version ofvarying.
-
-