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 MemorySegmenta(MemorySegment union) Getter for field:struct wl_array *astatic voida(MemorySegment union, MemorySegment fieldValue) Setter for field:struct wl_array *astatic final AddressLayouta$layout()Layout for field:struct wl_array *astatic final longa$offset()Offset for field:struct wl_array *astatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static intf(MemorySegment union) Getter for field:wl_fixed_t fstatic voidf(MemorySegment union, int fieldValue) Setter for field:wl_fixed_t fstatic final ValueLayout.OfIntf$layout()Layout for field:wl_fixed_t fstatic final longf$offset()Offset for field:wl_fixed_t fstatic inth(MemorySegment union) Getter for field:int32_t hstatic voidh(MemorySegment union, int fieldValue) Setter for field:int32_t hstatic final ValueLayout.OfInth$layout()Layout for field:int32_t hstatic final longh$offset()Offset for field:int32_t hstatic inti(MemorySegment union) Getter for field:int32_t istatic voidi(MemorySegment union, int fieldValue) Setter for field:int32_t istatic final ValueLayout.OfInti$layout()Layout for field:int32_t istatic final longi$offset()Offset for field:int32_t istatic final GroupLayoutlayout()The layout of this unionstatic intn(MemorySegment union) Getter for field:uint32_t nstatic voidn(MemorySegment union, int fieldValue) Setter for field:uint32_t nstatic final ValueLayout.OfIntn$layout()Layout for field:uint32_t nstatic final longn$offset()Offset for field:uint32_t nstatic MemorySegmento(MemorySegment union) Getter for field:struct wl_object *ostatic voido(MemorySegment union, MemorySegment fieldValue) Setter for field:struct wl_object *ostatic final AddressLayouto$layout()Layout for field:struct wl_object *ostatic final longo$offset()Offset for field:struct wl_object *ostatic 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 MemorySegments(MemorySegment union) Getter for field:const char *sstatic voids(MemorySegment union, MemorySegment fieldValue) Setter for field:const char *sstatic final AddressLayouts$layout()Layout for field:const char *sstatic final longs$offset()Offset for field:const char *sstatic longsizeof()The size (in bytes) of this unionstatic intu(MemorySegment union) Getter for field:uint32_t ustatic voidu(MemorySegment union, int fieldValue) Setter for field:uint32_t ustatic final ValueLayout.OfIntu$layout()Layout for field:uint32_t ustatic final longu$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 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 union -
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()
-