Package org.freedesktop.wayland.raw
Class sigval
java.lang.Object
org.freedesktop.wayland.raw.sigval
-
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
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static final GroupLayout
layout()
The layout of this unionstatic 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 int
sival_int
(MemorySegment union) Getter for field:int sival_int
static void
sival_int
(MemorySegment union, int fieldValue) Setter for field:int sival_int
static final ValueLayout.OfInt
Layout for field:int sival_int
static final long
Offset for field:int sival_int
static MemorySegment
sival_ptr
(MemorySegment union) Getter for field:void *sival_ptr
static void
sival_ptr
(MemorySegment union, MemorySegment fieldValue) Setter for field:void *sival_ptr
static final AddressLayout
Layout for field:void *sival_ptr
static final long
Offset for field:void *sival_ptr
static long
sizeof()
The size (in bytes) of this union
-
Method Details
-
layout
The layout of this union -
sival_int$layout
Layout for field:int sival_int
-
sival_int$offset
public static final long sival_int$offset()Offset for field:int sival_int
-
sival_int
Getter for field:int sival_int
-
sival_int
Setter for field:int sival_int
-
sival_ptr$layout
Layout for field:void *sival_ptr
-
sival_ptr$offset
public static final long sival_ptr$offset()Offset for field:void *sival_ptr
-
sival_ptr
Getter for field:void *sival_ptr
-
sival_ptr
Setter for field:void *sival_ptr
-
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()
-