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 MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
arguments
(MemorySegment struct) Getter for field:const union wl_argument *arguments
static void
arguments
(MemorySegment struct, MemorySegment fieldValue) Setter for field:const union wl_argument *arguments
static int
arguments_count
(MemorySegment struct) Getter for field:int arguments_count
static void
arguments_count
(MemorySegment struct, int fieldValue) Setter for field:int arguments_count
static final ValueLayout.OfInt
Layout for field:int arguments_count
static final long
Offset for field:int arguments_count
static final AddressLayout
Layout for field:const union wl_argument *arguments
static final long
Offset for field:const union wl_argument *arguments
static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static final GroupLayout
layout()
The layout of this structstatic MemorySegment
message
(MemorySegment struct) Getter for field:const struct wl_message *message
static void
message
(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct wl_message *message
static int
message_opcode
(MemorySegment struct) Getter for field:int message_opcode
static void
message_opcode
(MemorySegment struct, int fieldValue) Setter for field:int message_opcode
static final ValueLayout.OfInt
Layout for field:int message_opcode
static final long
Offset for field:int message_opcode
static final AddressLayout
Layout for field:const struct wl_message *message
static final long
Offset for field:const struct wl_message *message
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
resource
(MemorySegment struct) Getter for field:struct wl_resource *resource
static void
resource
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct wl_resource *resource
static final AddressLayout
Layout for field:struct wl_resource *resource
static final long
Offset for field:struct wl_resource *resource
static long
sizeof()
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 ofarrayParam
which 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 sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-