Package org.freedesktop.wayland.raw
Class sigval
java.lang.Object
org.freedesktop.wayland.raw.sigval
-
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 MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static final GroupLayoutlayout()The layout of this unionstatic 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 intsival_int(MemorySegment union) Getter for field:int sival_intstatic voidsival_int(MemorySegment union, int fieldValue) Setter for field:int sival_intstatic final ValueLayout.OfIntLayout for field:int sival_intstatic final longOffset for field:int sival_intstatic MemorySegmentsival_ptr(MemorySegment union) Getter for field:void *sival_ptrstatic voidsival_ptr(MemorySegment union, MemorySegment fieldValue) Setter for field:void *sival_ptrstatic final AddressLayoutLayout for field:void *sival_ptrstatic final longOffset for field:void *sival_ptrstatic longsizeof()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 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()
-