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 record
Represents a pointer to / an array ofXrNegotiateLoaderInfo
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfLong
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionXrNegotiateLoaderInfo
(@NotNull MemorySegment segment) Creates an instance of aXrNegotiateLoaderInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrNegotiateLoaderInfo
static XrNegotiateLoaderInfo.Ptr
static XrNegotiateLoaderInfo
clone
(Arena arena, XrNegotiateLoaderInfo src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
maxApiVersion
(long value) int
maxInterfaceVersion
(int value) long
minApiVersion
(long value) int
minInterfaceVersion
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.long
structSize
(long value) int
structType
(int value) int
structVersion
(int value) final String
toString()
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 aXrNegotiateLoaderInfo
record class.- Parameters:
segment
- the value for thesegment
record 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 thesegment
record component.
-