Package org.freedesktop.wayland.raw
Class wl_argument
java.lang.Object
org.freedesktop.wayland.raw.wl_argument
union wl_argument {
int32_t i;
uint32_t u;
wl_fixed_t f;
const char *s;
struct wl_object *o;
uint32_t n;
struct wl_array *a;
int32_t h;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment
a
(MemorySegment union) Getter for field:struct wl_array *a
static void
a
(MemorySegment union, MemorySegment fieldValue) Setter for field:struct wl_array *a
static final AddressLayout
a$layout()
Layout for field:struct wl_array *a
static final long
a$offset()
Offset for field:struct wl_array *a
static 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
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static int
f
(MemorySegment union) Getter for field:wl_fixed_t f
static void
f
(MemorySegment union, int fieldValue) Setter for field:wl_fixed_t f
static final ValueLayout.OfInt
f$layout()
Layout for field:wl_fixed_t f
static final long
f$offset()
Offset for field:wl_fixed_t f
static int
h
(MemorySegment union) Getter for field:int32_t h
static void
h
(MemorySegment union, int fieldValue) Setter for field:int32_t h
static final ValueLayout.OfInt
h$layout()
Layout for field:int32_t h
static final long
h$offset()
Offset for field:int32_t h
static int
i
(MemorySegment union) Getter for field:int32_t i
static void
i
(MemorySegment union, int fieldValue) Setter for field:int32_t i
static final ValueLayout.OfInt
i$layout()
Layout for field:int32_t i
static final long
i$offset()
Offset for field:int32_t i
static final GroupLayout
layout()
The layout of this unionstatic int
n
(MemorySegment union) Getter for field:uint32_t n
static void
n
(MemorySegment union, int fieldValue) Setter for field:uint32_t n
static final ValueLayout.OfInt
n$layout()
Layout for field:uint32_t n
static final long
n$offset()
Offset for field:uint32_t n
static MemorySegment
o
(MemorySegment union) Getter for field:struct wl_object *o
static void
o
(MemorySegment union, MemorySegment fieldValue) Setter for field:struct wl_object *o
static final AddressLayout
o$layout()
Layout for field:struct wl_object *o
static final long
o$offset()
Offset for field:struct wl_object *o
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
s
(MemorySegment union) Getter for field:const char *s
static void
s
(MemorySegment union, MemorySegment fieldValue) Setter for field:const char *s
static final AddressLayout
s$layout()
Layout for field:const char *s
static final long
s$offset()
Offset for field:const char *s
static long
sizeof()
The size (in bytes) of this unionstatic int
u
(MemorySegment union) Getter for field:uint32_t u
static void
u
(MemorySegment union, int fieldValue) Setter for field:uint32_t u
static final ValueLayout.OfInt
u$layout()
Layout for field:uint32_t u
static final long
u$offset()
Offset for field:uint32_t u
-
Method Details
-
layout
The layout of this union -
i$layout
Layout for field:int32_t i
-
i$offset
public static final long i$offset()Offset for field:int32_t i
-
i
Getter for field:int32_t i
-
i
Setter for field:int32_t i
-
u$layout
Layout for field:uint32_t u
-
u$offset
public static final long u$offset()Offset for field:uint32_t u
-
u
Getter for field:uint32_t u
-
u
Setter for field:uint32_t u
-
f$layout
Layout for field:wl_fixed_t f
-
f$offset
public static final long f$offset()Offset for field:wl_fixed_t f
-
f
Getter for field:wl_fixed_t f
-
f
Setter for field:wl_fixed_t f
-
s$layout
Layout for field:const char *s
-
s$offset
public static final long s$offset()Offset for field:const char *s
-
s
Getter for field:const char *s
-
s
Setter for field:const char *s
-
o$layout
Layout for field:struct wl_object *o
-
o$offset
public static final long o$offset()Offset for field:struct wl_object *o
-
o
Getter for field:struct wl_object *o
-
o
Setter for field:struct wl_object *o
-
n$layout
Layout for field:uint32_t n
-
n$offset
public static final long n$offset()Offset for field:uint32_t n
-
n
Getter for field:uint32_t n
-
n
Setter for field:uint32_t n
-
a$layout
Layout for field:struct wl_array *a
-
a$offset
public static final long a$offset()Offset for field:struct wl_array *a
-
a
Getter for field:struct wl_array *a
-
a
Setter for field:struct wl_array *a
-
h$layout
Layout for field:int32_t h
-
h$offset
public static final long h$offset()Offset for field:int32_t h
-
h
Getter for field:int32_t h
-
h
Setter for field:int32_t h
-
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 union -
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()
-