Package org.freedesktop.wayland.raw
Class wl_protocol_logger_message
java.lang.Object
org.freedesktop.wayland.raw.wl_protocol_logger_message
struct wl_protocol_logger_message {
struct wl_resource *resource;
int message_opcode;
const struct wl_message *message;
int arguments_count;
const union wl_argument *arguments;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentarguments(MemorySegment struct) Getter for field:const union wl_argument *argumentsstatic voidarguments(MemorySegment struct, MemorySegment fieldValue) Setter for field:const union wl_argument *argumentsstatic intarguments_count(MemorySegment struct) Getter for field:int arguments_countstatic voidarguments_count(MemorySegment struct, int fieldValue) Setter for field:int arguments_countstatic final ValueLayout.OfIntLayout for field:int arguments_countstatic final longOffset for field:int arguments_countstatic final AddressLayoutLayout for field:const union wl_argument *argumentsstatic final longOffset for field:const union wl_argument *argumentsstatic MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static final GroupLayoutlayout()The layout of this structstatic MemorySegmentmessage(MemorySegment struct) Getter for field:const struct wl_message *messagestatic voidmessage(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct wl_message *messagestatic intmessage_opcode(MemorySegment struct) Getter for field:int message_opcodestatic voidmessage_opcode(MemorySegment struct, int fieldValue) Setter for field:int message_opcodestatic final ValueLayout.OfIntLayout for field:int message_opcodestatic final longOffset for field:int message_opcodestatic final AddressLayoutLayout for field:const struct wl_message *messagestatic final longOffset for field:const struct wl_message *messagestatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentresource(MemorySegment struct) Getter for field:struct wl_resource *resourcestatic voidresource(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct wl_resource *resourcestatic final AddressLayoutLayout for field:struct wl_resource *resourcestatic final longOffset for field:struct wl_resource *resourcestatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
resource$layout
Layout for field:struct wl_resource *resource -
resource$offset
public static final long resource$offset()Offset for field:struct wl_resource *resource -
resource
Getter for field:struct wl_resource *resource -
resource
Setter for field:struct wl_resource *resource -
message_opcode$layout
Layout for field:int message_opcode -
message_opcode$offset
public static final long message_opcode$offset()Offset for field:int message_opcode -
message_opcode
Getter for field:int message_opcode -
message_opcode
Setter for field:int message_opcode -
message$layout
Layout for field:const struct wl_message *message -
message$offset
public static final long message$offset()Offset for field:const struct wl_message *message -
message
Getter for field:const struct wl_message *message -
message
Setter for field:const struct wl_message *message -
arguments_count$layout
Layout for field:int arguments_count -
arguments_count$offset
public static final long arguments_count$offset()Offset for field:int arguments_count -
arguments_count
Getter for field:int arguments_count -
arguments_count
Setter for field:int arguments_count -
arguments$layout
Layout for field:const union wl_argument *arguments -
arguments$offset
public static final long arguments$offset()Offset for field:const union wl_argument *arguments -
arguments
Getter for field:const union wl_argument *arguments -
arguments
Setter for field:const union wl_argument *arguments -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-