Package org.freedesktop.wayland.raw
Class pthread_barrierattr_t
java.lang.Object
org.freedesktop.wayland.raw.pthread_barrierattr_t
-
Method Summary
Modifier and TypeMethodDescriptionstatic int__align(MemorySegment union) Getter for field:int __alignstatic void__align(MemorySegment union, int fieldValue) Setter for field:int __alignstatic final ValueLayout.OfIntLayout for field:int __alignstatic final longOffset for field:int __alignstatic MemorySegment__size(MemorySegment union) Getter for field:char __size[4]static byte__size(MemorySegment union, long index0) Indexed getter for field:char __size[4]static void__size(MemorySegment union, long index0, byte fieldValue) Indexed setter for field:char __size[4]static void__size(MemorySegment union, MemorySegment fieldValue) Setter for field:char __size[4]static long[]Dimensions for array field:char __size[4]static final SequenceLayoutLayout for field:char __size[4]static final longOffset for field:char __size[4]static 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 longsizeof()The size (in bytes) of this union
-
Method Details
-
layout
The layout of this union -
__size$layout
Layout for field:char __size[4] -
__size$offset
public static final long __size$offset()Offset for field:char __size[4] -
__size
Getter for field:char __size[4] -
__size
Setter for field:char __size[4] -
__size$dimensions
public static long[] __size$dimensions()Dimensions for array field:char __size[4] -
__size
Indexed getter for field:char __size[4] -
__size
Indexed setter for field:char __size[4] -
__align$layout
Layout for field:int __align -
__align$offset
public static final long __align$offset()Offset for field:int __align -
__align
Getter for field:int __align -
__align
Setter for field:int __align -
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()
-