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 record
Represents a pointer to / an array ofXrDebugUtilsMessengerCallbackDataEXT
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final ValueLayout.OfInt
static final AddressLayout
static final ValueLayout.OfInt
static final AddressLayout
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 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 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
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionXrDebugUtilsMessengerCallbackDataEXT
(@NotNull MemorySegment segment) Creates an instance of aXrDebugUtilsMessengerCallbackDataEXT
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
clone
(Arena arena, XrDebugUtilsMessengerCallbackDataEXT src) final boolean
Indicates whether some other object is "equal to" this one.@Nullable BytePtr
Note: the returnedBytePtr
does not have correctBytePtr.size()
property.functionName
(@Nullable BytePtr value) @NotNull MemorySegment
void
functionNameRaw
(@NotNull MemorySegment value) final int
hashCode()
Returns a hash code value for this object.@Nullable BytePtr
message()
Note: the returnedBytePtr
does not have correctBytePtr.size()
property.@Nullable BytePtr
Note: the returnedBytePtr
does not have correctBytePtr.size()
property.@NotNull MemorySegment
void
messageIdRaw
(@NotNull MemorySegment value) @NotNull MemorySegment
void
messageRaw
(@NotNull MemorySegment value) @NotNull MemorySegment
next()
next
(@NotNull MemorySegment value) int
objectCount
(int value) @Nullable XrDebugUtilsObjectNameInfoEXT
objects()
objects
(int assumedCount) objects
(@Nullable IXrDebugUtilsObjectNameInfoEXT value) @NotNull MemorySegment
void
objectsRaw
(@NotNull MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
sessionLabelCount
(int value) @Nullable XrDebugUtilsLabelEXT
sessionLabels
(int assumedCount) sessionLabels
(@Nullable IXrDebugUtilsLabelEXT value) @NotNull MemorySegment
void
sessionLabelsRaw
(@NotNull MemorySegment value) final String
toString()
Returns a string representation of this record class.int
type()
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 aXrDebugUtilsMessengerCallbackDataEXT
record class.- Parameters:
segment
- the value for thesegment
record 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 returnedBytePtr
does 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 returnedBytePtr
does 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 returnedBytePtr
does 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 thesegment
record component.
-