Class XrRoomMeshFaceMETA
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface 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.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrRoomMeshFaceMETA(ByteBuffer container) Creates aXrRoomMeshFaceMETAinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrRoomMeshFaceMETAcalloc()Returns a newXrRoomMeshFaceMETAinstance allocated withmemCalloc.static XrRoomMeshFaceMETA.Buffercalloc(int capacity) Returns a newXrRoomMeshFaceMETA.Bufferinstance allocated withmemCalloc.static XrRoomMeshFaceMETA.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrRoomMeshFaceMETA.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRoomMeshFaceMETAcalloc(MemoryStack stack) Returns a newXrRoomMeshFaceMETAinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRoomMeshFaceMETAcreate()Returns a newXrRoomMeshFaceMETAinstance allocated withBufferUtils.static XrRoomMeshFaceMETA.Buffercreate(int capacity) Returns a newXrRoomMeshFaceMETA.Bufferinstance allocated withBufferUtils.static XrRoomMeshFaceMETAcreate(long address) Returns a newXrRoomMeshFaceMETAinstance for the specified memory address.static XrRoomMeshFaceMETA.Buffercreate(long address, int capacity) Create aXrRoomMeshFaceMETA.Bufferinstance at the specified memory.static @Nullable XrRoomMeshFaceMETAcreateSafe(long address) static @Nullable XrRoomMeshFaceMETA.BuffercreateSafe(long address, int capacity) static XrRoomMeshFaceMETAmalloc()Returns a newXrRoomMeshFaceMETAinstance allocated withmemAlloc.static XrRoomMeshFaceMETA.Buffermalloc(int capacity) Returns a newXrRoomMeshFaceMETA.Bufferinstance allocated withmemAlloc.static XrRoomMeshFaceMETA.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrRoomMeshFaceMETA.Bufferinstance allocated on the specifiedMemoryStack.static XrRoomMeshFaceMETAmalloc(MemoryStack stack) Returns a newXrRoomMeshFaceMETAinstance allocated on the specifiedMemoryStack.static XrUuidnparentUuid(long struct) Unsafe version ofparentUuid().static voidnparentUuid(long struct, XrUuid value) Unsafe version ofparentUuid.static intnsemanticLabel(long struct) Unsafe version ofsemanticLabel().static voidnsemanticLabel(long struct, int value) Unsafe version ofsemanticLabel.static XrUuidnuuid(long struct) Unsafe version ofuuid().static voidUnsafe version ofuuid.parentUuid(Consumer<XrUuid> consumer) Passes theparentUuidfield to the specifiedConsumer.parentUuid(XrUuid value) Copies the specifiedXrUuidto theparentUuidfield.intsemanticLabel(int value) Sets the specified value to thesemanticLabelfield.set(XrRoomMeshFaceMETA src) Copies the specified struct data to this struct.Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).uuid()Passes theuuidfield to the specifiedConsumer.Copies the specifiedXrUuidto theuuidfield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
UUID
public static final int UUIDThe struct member offsets. -
PARENTUUID
public static final int PARENTUUIDThe struct member offsets. -
SEMANTICLABEL
public static final int SEMANTICLABELThe struct member offsets.
-
-
Constructor Details
-
XrRoomMeshFaceMETA
Creates aXrRoomMeshFaceMETAinstance 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<XrRoomMeshFaceMETA>
-
uuid
-
parentUuid
-
semanticLabel
- Returns:
- the value of the
semanticLabelfield.
-
uuid
Copies the specifiedXrUuidto theuuidfield. -
uuid
Passes theuuidfield to the specifiedConsumer. -
parentUuid
Copies the specifiedXrUuidto theparentUuidfield. -
parentUuid
Passes theparentUuidfield to the specifiedConsumer. -
semanticLabel
Sets the specified value to thesemanticLabelfield. -
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 newXrRoomMeshFaceMETAinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrRoomMeshFaceMETAinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrRoomMeshFaceMETAinstance allocated withBufferUtils. -
create
Returns a newXrRoomMeshFaceMETAinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrRoomMeshFaceMETA.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrRoomMeshFaceMETA.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrRoomMeshFaceMETA.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrRoomMeshFaceMETA.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrRoomMeshFaceMETAinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrRoomMeshFaceMETAinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrRoomMeshFaceMETA.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrRoomMeshFaceMETA.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nuuid
-
nparentUuid
Unsafe version ofparentUuid(). -
nsemanticLabel
public static int nsemanticLabel(long struct) Unsafe version ofsemanticLabel(). -
nuuid
-
nparentUuid
Unsafe version ofparentUuid. -
nsemanticLabel
public static void nsemanticLabel(long struct, int value) Unsafe version ofsemanticLabel.
-