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:
  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$componentType

      public static final MemoryLayout.PathElement PATH$componentType
    • PATH$id

      public static final MemoryLayout.PathElement PATH$id
    • PATH$parentId

      public static final MemoryLayout.PathElement PATH$parentId
    • PATH$updateTime

      public static final MemoryLayout.PathElement PATH$updateTime
    • LAYOUT$componentType

      public static final ValueLayout.OfInt LAYOUT$componentType
    • LAYOUT$id

      public static final StructLayout LAYOUT$id
    • LAYOUT$parentId

      public static final StructLayout LAYOUT$parentId
    • LAYOUT$updateTime

      public static final ValueLayout.OfLong 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

      public XrSceneComponentMSFT(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a XrSceneComponentMSFT record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details