Record Class XrNegotiateLoaderInfo
java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrNegotiateLoaderInfo
- All Implemented Interfaces:
IPointer,IXrNegotiateLoaderInfo
@ValueBasedCandidate
@UnsafeConstructor
public record XrNegotiateLoaderInfo(@NotNull MemorySegment segment)
extends Record
implements IXrNegotiateLoaderInfo
Represents a pointer to a XrNegotiateLoaderInfo structure in native memory.
Structure
typedef struct XrNegotiateLoaderInfo {
XrLoaderInterfaceStructs structType;
uint32_t structVersion;
size_t structSize;
uint32_t minInterfaceVersion;
uint32_t maxInterfaceVersion;
XrVersion minApiVersion;
XrVersion maxApiVersion;
} XrNegotiateLoaderInfo;
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 ofXrNegotiateLoaderInfostructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfLongstatic final ValueLayout.OfIntstatic final ValueLayout.OfLongstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionXrNegotiateLoaderInfo(@NotNull MemorySegment segment) Creates an instance of aXrNegotiateLoaderInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrNegotiateLoaderInfostatic XrNegotiateLoaderInfo.Ptrstatic XrNegotiateLoaderInfoclone(Arena arena, XrNegotiateLoaderInfo src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longmaxApiVersion(long value) intmaxInterfaceVersion(int value) longminApiVersion(long value) intminInterfaceVersion(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.longstructSize(long value) intstructType(int value) intstructVersion(int value) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$structType
-
PATH$structVersion
-
PATH$structSize
-
PATH$minInterfaceVersion
-
PATH$maxInterfaceVersion
-
PATH$minApiVersion
-
PATH$maxApiVersion
-
LAYOUT$structType
-
LAYOUT$structVersion
-
LAYOUT$minInterfaceVersion
-
LAYOUT$maxInterfaceVersion
-
LAYOUT$minApiVersion
-
LAYOUT$maxApiVersion
-
SIZE$structType
public static final long SIZE$structType -
SIZE$structVersion
public static final long SIZE$structVersion -
SIZE$structSize
public static final long SIZE$structSize -
SIZE$minInterfaceVersion
public static final long SIZE$minInterfaceVersion -
SIZE$maxInterfaceVersion
public static final long SIZE$maxInterfaceVersion -
SIZE$minApiVersion
public static final long SIZE$minApiVersion -
SIZE$maxApiVersion
public static final long SIZE$maxApiVersion -
OFFSET$structType
public static final long OFFSET$structType -
OFFSET$structVersion
public static final long OFFSET$structVersion -
OFFSET$structSize
public static final long OFFSET$structSize -
OFFSET$minInterfaceVersion
public static final long OFFSET$minInterfaceVersion -
OFFSET$maxInterfaceVersion
public static final long OFFSET$maxInterfaceVersion -
OFFSET$minApiVersion
public static final long OFFSET$minApiVersion -
OFFSET$maxApiVersion
public static final long OFFSET$maxApiVersion
-
-
Constructor Details
-
XrNegotiateLoaderInfo
Creates an instance of aXrNegotiateLoaderInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
structType
-
structType
-
structVersion
-
structVersion
-
structSize
-
structSize
-
minInterfaceVersion
-
minInterfaceVersion
-
maxInterfaceVersion
-
maxInterfaceVersion
-
minApiVersion
-
minApiVersion
-
maxApiVersion
-
maxApiVersion
-
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.
-