Package org.freedesktop.wayland.raw
Class pthread_mutex_t
java.lang.Object
org.freedesktop.wayland.raw.pthread_mutex_t
union {
struct __pthread_mutex_s __data;
char __size[40];
long __align;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic long__align(MemorySegment union) Getter for field:long __alignstatic void__align(MemorySegment union, long fieldValue) Setter for field:long __alignstatic final ValueLayout.OfLongLayout for field:long __alignstatic final longOffset for field:long __alignstatic MemorySegment__data(MemorySegment union) Getter for field:struct __pthread_mutex_s __datastatic void__data(MemorySegment union, MemorySegment fieldValue) Setter for field:struct __pthread_mutex_s __datastatic final GroupLayoutLayout for field:struct __pthread_mutex_s __datastatic final longOffset for field:struct __pthread_mutex_s __datastatic MemorySegment__size(MemorySegment union) Getter for field:char __size[40]static byte__size(MemorySegment union, long index0) Indexed getter for field:char __size[40]static void__size(MemorySegment union, long index0, byte fieldValue) Indexed setter for field:char __size[40]static void__size(MemorySegment union, MemorySegment fieldValue) Setter for field:char __size[40]static long[]Dimensions for array field:char __size[40]static final SequenceLayoutLayout for field:char __size[40]static final longOffset for field:char __size[40]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 -
__data$layout
Layout for field:struct __pthread_mutex_s __data -
__data$offset
public static final long __data$offset()Offset for field:struct __pthread_mutex_s __data -
__data
Getter for field:struct __pthread_mutex_s __data -
__data
Setter for field:struct __pthread_mutex_s __data -
__size$layout
Layout for field:char __size[40] -
__size$offset
public static final long __size$offset()Offset for field:char __size[40] -
__size
Getter for field:char __size[40] -
__size
Setter for field:char __size[40] -
__size$dimensions
public static long[] __size$dimensions()Dimensions for array field:char __size[40] -
__size
Indexed getter for field:char __size[40] -
__size
Indexed setter for field:char __size[40] -
__align$layout
Layout for field:long __align -
__align$offset
public static final long __align$offset()Offset for field:long __align -
__align
Getter for field:long __align -
__align
Setter for field:long __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()
-