Record Class XrSceneComponentMSFT
java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrSceneComponentMSFT
- All Implemented Interfaces:
IPointer,IXrSceneComponentMSFT
@ValueBasedCandidate
@UnsafeConstructor
public record XrSceneComponentMSFT(@NotNull MemorySegment segment)
extends Record
implements IXrSceneComponentMSFT
Represents a pointer to a XrSceneComponentMSFT structure in native memory.
Structure
typedef struct XrSceneComponentMSFT {
XrSceneComponentTypeMSFT componentType;
XrUuidMSFT id;
XrUuidMSFT parentId; // optional
XrTime updateTime;
} XrSceneComponentMSFT;
Contracts
The property segment() should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to
LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java
null instead. See the documentation of IPointer.segment() for more details.
The constructor of this class is marked as UnsafeConstructor, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array ofXrSceneComponentMSFTstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final StructLayoutstatic final StructLayoutstatic final ValueLayout.OfLongstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionXrSceneComponentMSFT(@NotNull MemorySegment segment) Creates an instance of aXrSceneComponentMSFTrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSceneComponentMSFTstatic XrSceneComponentMSFT.Ptrstatic XrSceneComponentMSFTclone(Arena arena, XrSceneComponentMSFT src) intcomponentType(int value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull XrUuidMSFTid()id(@NotNull XrUuidMSFT value) id(Consumer<@NotNull XrUuidMSFT> consumer) @NotNull XrUuidMSFTparentId()parentId(@NotNull XrUuidMSFT value) parentId(Consumer<@NotNull XrUuidMSFT> consumer) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.longupdateTime(long value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$componentType
-
PATH$id
-
PATH$parentId
-
PATH$updateTime
-
LAYOUT$componentType
-
LAYOUT$id
-
LAYOUT$parentId
-
LAYOUT$updateTime
-
SIZE$componentType
public static final long SIZE$componentType -
SIZE$id
public static final long SIZE$id -
SIZE$parentId
public static final long SIZE$parentId -
SIZE$updateTime
public static final long SIZE$updateTime -
OFFSET$componentType
public static final long OFFSET$componentType -
OFFSET$id
public static final long OFFSET$id -
OFFSET$parentId
public static final long OFFSET$parentId -
OFFSET$updateTime
public static final long OFFSET$updateTime
-
-
Constructor Details
-
XrSceneComponentMSFT
Creates an instance of aXrSceneComponentMSFTrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
componentType
-
componentType
-
id
-
id
-
id
-
parentId
-
parentId
-
parentId
-
updateTime
-
updateTime
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
segment
Returns the value of thesegmentrecord component.
-