Package org.freedesktop.wayland.raw
Class sigaction.__sigaction_handler
java.lang.Object
org.freedesktop.wayland.raw.sigaction.__sigaction_handler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classvoid (*sa_sigaction)(int, siginfo_t *, void *) -
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 MemorySegmentsa_handler(MemorySegment union) Getter for field:__sighandler_t sa_handlerstatic voidsa_handler(MemorySegment union, MemorySegment fieldValue) Setter for field:__sighandler_t sa_handlerstatic final AddressLayoutLayout for field:__sighandler_t sa_handlerstatic final longOffset for field:__sighandler_t sa_handlerstatic MemorySegmentsa_sigaction(MemorySegment union) Getter for field:void (*sa_sigaction)(int, siginfo_t *, void *)static voidsa_sigaction(MemorySegment union, MemorySegment fieldValue) Setter for field:void (*sa_sigaction)(int, siginfo_t *, void *)static final AddressLayoutLayout for field:void (*sa_sigaction)(int, siginfo_t *, void *)static final longOffset for field:void (*sa_sigaction)(int, siginfo_t *, void *)static longsizeof()The size (in bytes) of this union
-
Method Details
-
layout
The layout of this union -
sa_handler$layout
Layout for field:__sighandler_t sa_handler -
sa_handler$offset
public static final long sa_handler$offset()Offset for field:__sighandler_t sa_handler -
sa_handler
Getter for field:__sighandler_t sa_handler -
sa_handler
Setter for field:__sighandler_t sa_handler -
sa_sigaction$layout
Layout for field:void (*sa_sigaction)(int, siginfo_t *, void *) -
sa_sigaction$offset
public static final long sa_sigaction$offset()Offset for field:void (*sa_sigaction)(int, siginfo_t *, void *) -
sa_sigaction
Getter for field:void (*sa_sigaction)(int, siginfo_t *, void *) -
sa_sigaction
Setter for field:void (*sa_sigaction)(int, siginfo_t *, void *) -
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()
-