Record Class XrDebugUtilsMessengerCallbackDataEXT
- All Implemented Interfaces:
IPointer,IXrDebugUtilsMessengerCallbackDataEXT
Represents a pointer to a XrDebugUtilsMessengerCallbackDataEXT structure in native memory.
Structure
typedef struct XrDebugUtilsMessengerCallbackDataEXT {
XrStructureType type;
void const* next;
char const* messageId; // optional
char const* functionName; // optional
char const* message;
uint32_t objectCount; // optional
XrDebugUtilsObjectNameInfoEXT* objects; // optional
uint32_t sessionLabelCount; // optional
XrDebugUtilsLabelEXT* sessionLabels; // optional
} XrDebugUtilsMessengerCallbackDataEXT;
Auto initialization
This structure has the following members that can be automatically initialized:
type = XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT
The allocate (allocate(Arena), allocate(Arena, long))
functions will automatically initialize these fields. Also, you may call autoInit()
to initialize these fields manually for non-allocated instances.
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 ofXrDebugUtilsMessengerCallbackDataEXTstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final longstatic final longstatic 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 MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionXrDebugUtilsMessengerCallbackDataEXT(@NotNull MemorySegment segment) Creates an instance of aXrDebugUtilsMessengerCallbackDataEXTrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()clone(Arena arena, XrDebugUtilsMessengerCallbackDataEXT src) final booleanIndicates whether some other object is "equal to" this one.@Nullable BytePtrNote: the returnedBytePtrdoes not have correctBytePtr.size()property.functionName(@Nullable BytePtr value) @NotNull MemorySegmentvoidfunctionNameRaw(@NotNull MemorySegment value) final inthashCode()Returns a hash code value for this object.@Nullable BytePtrmessage()Note: the returnedBytePtrdoes not have correctBytePtr.size()property.@Nullable BytePtrNote: the returnedBytePtrdoes not have correctBytePtr.size()property.@NotNull MemorySegmentvoidmessageIdRaw(@NotNull MemorySegment value) @NotNull MemorySegmentvoidmessageRaw(@NotNull MemorySegment value) @NotNull MemorySegmentnext()next(@NotNull MemorySegment value) intobjectCount(int value) @Nullable XrDebugUtilsObjectNameInfoEXTobjects()objects(int assumedCount) objects(@Nullable IXrDebugUtilsObjectNameInfoEXT value) @NotNull MemorySegmentvoidobjectsRaw(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsessionLabelCount(int value) @Nullable XrDebugUtilsLabelEXTsessionLabels(int assumedCount) sessionLabels(@Nullable IXrDebugUtilsLabelEXT value) @NotNull MemorySegmentvoidsessionLabelsRaw(@NotNull MemorySegment value) final StringtoString()Returns a string representation of this record class.inttype()type(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$type
-
PATH$next
-
PATH$messageId
-
PATH$functionName
-
PATH$message
-
PATH$objectCount
-
PATH$objects
-
PATH$sessionLabelCount
-
PATH$sessionLabels
-
LAYOUT$type
-
LAYOUT$next
-
LAYOUT$messageId
-
LAYOUT$functionName
-
LAYOUT$message
-
LAYOUT$objectCount
-
LAYOUT$objects
-
LAYOUT$sessionLabelCount
-
LAYOUT$sessionLabels
-
SIZE$type
public static final long SIZE$type -
SIZE$next
public static final long SIZE$next -
SIZE$messageId
public static final long SIZE$messageId -
SIZE$functionName
public static final long SIZE$functionName -
SIZE$message
public static final long SIZE$message -
SIZE$objectCount
public static final long SIZE$objectCount -
SIZE$objects
public static final long SIZE$objects -
SIZE$sessionLabelCount
public static final long SIZE$sessionLabelCount -
SIZE$sessionLabels
public static final long SIZE$sessionLabels -
OFFSET$type
public static final long OFFSET$type -
OFFSET$next
public static final long OFFSET$next -
OFFSET$messageId
public static final long OFFSET$messageId -
OFFSET$functionName
public static final long OFFSET$functionName -
OFFSET$message
public static final long OFFSET$message -
OFFSET$objectCount
public static final long OFFSET$objectCount -
OFFSET$objects
public static final long OFFSET$objects -
OFFSET$sessionLabelCount
public static final long OFFSET$sessionLabelCount -
OFFSET$sessionLabels
public static final long OFFSET$sessionLabels
-
-
Constructor Details
-
XrDebugUtilsMessengerCallbackDataEXT
Creates an instance of aXrDebugUtilsMessengerCallbackDataEXTrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static XrDebugUtilsMessengerCallbackDataEXT clone(Arena arena, XrDebugUtilsMessengerCallbackDataEXT src) -
autoInit
public void autoInit() -
type
-
type
-
next
-
next
public XrDebugUtilsMessengerCallbackDataEXT next(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
next
-
messageId
Note: the returnedBytePtrdoes not have correctBytePtr.size()property. It's up to user to track the size of the buffer, and useBytePtr.reinterpret(long)to set the size before actually reading from or writing to the buffer. -
messageId
-
messageIdRaw
-
messageIdRaw
-
functionName
Note: the returnedBytePtrdoes not have correctBytePtr.size()property. It's up to user to track the size of the buffer, and useBytePtr.reinterpret(long)to set the size before actually reading from or writing to the buffer. -
functionName
-
functionNameRaw
-
functionNameRaw
-
message
Note: the returnedBytePtrdoes not have correctBytePtr.size()property. It's up to user to track the size of the buffer, and useBytePtr.reinterpret(long)to set the size before actually reading from or writing to the buffer. -
message
-
messageRaw
-
messageRaw
-
objectCount
-
objectCount
-
objects
public XrDebugUtilsMessengerCallbackDataEXT objects(@Nullable @Nullable IXrDebugUtilsObjectNameInfoEXT value) -
objects
-
objects
-
objectsRaw
@Pointer(target=XrDebugUtilsObjectNameInfoEXT.class) @NotNull public @NotNull MemorySegment objectsRaw() -
objectsRaw
public void objectsRaw(@Pointer(target=XrDebugUtilsObjectNameInfoEXT.class) @NotNull @NotNull MemorySegment value) -
sessionLabelCount
-
sessionLabelCount
-
sessionLabels
public XrDebugUtilsMessengerCallbackDataEXT sessionLabels(@Nullable @Nullable IXrDebugUtilsLabelEXT value) -
sessionLabels
-
sessionLabels
-
sessionLabelsRaw
@Pointer(target=XrDebugUtilsLabelEXT.class) @NotNull public @NotNull MemorySegment sessionLabelsRaw() -
sessionLabelsRaw
public void sessionLabelsRaw(@Pointer(target=XrDebugUtilsLabelEXT.class) @NotNull @NotNull MemorySegment value) -
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.
-