Package org.lwjgl.openxr
Class XrBaseInStructure
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrBaseInStructure
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrBaseInStructure extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceConvenience type for iterating (read only).Description
XrBaseInStructurecan be used to facilitate iterating through a read-only structure pointer chain.See Also
XrBaseInStructure,XrBaseOutStructureLayout
struct XrBaseInStructure { XrStructureTypetype();XrBaseInStructureconst *next(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrBaseInStructure.BufferAn array ofXrBaseInStructurestructs.
-
Constructor Summary
Constructors Constructor Description XrBaseInStructure(java.nio.ByteBuffer container)Creates aXrBaseInStructureinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrBaseInStructurecalloc()Returns a newXrBaseInStructureinstance allocated withmemCalloc.static XrBaseInStructure.Buffercalloc(int capacity)Returns a newXrBaseInStructure.Bufferinstance allocated withmemCalloc.static XrBaseInStructure.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrBaseInStructure.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrBaseInStructurecalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrBaseInStructureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrBaseInStructurecreate()Returns a newXrBaseInStructureinstance allocated withBufferUtils.static XrBaseInStructure.Buffercreate(int capacity)Returns a newXrBaseInStructure.Bufferinstance allocated withBufferUtils.static XrBaseInStructurecreate(long address)Returns a newXrBaseInStructureinstance for the specified memory address.static XrBaseInStructure.Buffercreate(long address, int capacity)Create aXrBaseInStructure.Bufferinstance at the specified memory.static XrBaseInStructurecreateSafe(long address)static XrBaseInStructure.BuffercreateSafe(long address, int capacity)static XrBaseInStructuremalloc()Returns a newXrBaseInStructureinstance allocated withmemAlloc.static XrBaseInStructure.Buffermalloc(int capacity)Returns a newXrBaseInStructure.Bufferinstance allocated withmemAlloc.static XrBaseInStructure.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrBaseInStructure.Bufferinstance allocated on the specifiedMemoryStack.static XrBaseInStructuremalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrBaseInStructureinstance allocated on the specifiedMemoryStack.XrBaseInStructurenext()NULLor a pointer to the next structure in a structure chain.XrBaseInStructurenext(XrBaseInStructure value)Sets the address of the specifiedXrBaseInStructureto thenext()field.static XrBaseInStructurennext(long struct)Unsafe version ofnext().static voidnnext(long struct, XrBaseInStructure value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrBaseInStructureset(int type, XrBaseInStructure next)Initializes this struct with the specified values.XrBaseInStructureset(XrBaseInStructure src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrBaseInStructuretype(int value)Sets the specified value to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrBaseInStructure
public XrBaseInStructure(java.nio.ByteBuffer container)
Creates aXrBaseInStructureinstance 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. This base structure itself has no associatedXrStructureTypevalue.
-
next
public XrBaseInStructure next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
type
public XrBaseInStructure type(int value)
Sets the specified value to thetype()field.
-
next
public XrBaseInStructure next(XrBaseInStructure value)
Sets the address of the specifiedXrBaseInStructureto thenext()field.
-
set
public XrBaseInStructure set(int type, XrBaseInStructure next)
Initializes this struct with the specified values.
-
set
public XrBaseInStructure set(XrBaseInStructure src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrBaseInStructure malloc()
Returns a newXrBaseInStructureinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrBaseInStructure calloc()
Returns a newXrBaseInStructureinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrBaseInStructure create()
Returns a newXrBaseInStructureinstance allocated withBufferUtils.
-
create
public static XrBaseInStructure create(long address)
Returns a newXrBaseInStructureinstance for the specified memory address.
-
createSafe
@Nullable public static XrBaseInStructure createSafe(long address)
-
malloc
public static XrBaseInStructure.Buffer malloc(int capacity)
Returns a newXrBaseInStructure.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrBaseInStructure.Buffer calloc(int capacity)
Returns a newXrBaseInStructure.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrBaseInStructure.Buffer create(int capacity)
Returns a newXrBaseInStructure.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrBaseInStructure.Buffer create(long address, int capacity)
Create aXrBaseInStructure.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrBaseInStructure.Buffer createSafe(long address, int capacity)
-
malloc
public static XrBaseInStructure malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrBaseInStructureinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrBaseInStructure calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrBaseInStructureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrBaseInStructure.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrBaseInStructure.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrBaseInStructure.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrBaseInStructure.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 XrBaseInStructure nnext(long struct)
Unsafe version ofnext().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, XrBaseInStructure value)Unsafe version ofnext.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-