Package org.freedesktop.wayland.raw
Class pthread_attr_t
java.lang.Object
org.freedesktop.wayland.raw.pthread_attr_t
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
__align
(MemorySegment union) Getter for field:long __align
static void
__align
(MemorySegment union, long fieldValue) Setter for field:long __align
static final ValueLayout.OfLong
Layout for field:long __align
static final long
Offset for field:long __align
static MemorySegment
__size
(MemorySegment union) Getter for field:char __size[56]
static byte
__size
(MemorySegment union, long index0) Indexed getter for field:char __size[56]
static void
__size
(MemorySegment union, long index0, byte fieldValue) Indexed setter for field:char __size[56]
static void
__size
(MemorySegment union, MemorySegment fieldValue) Setter for field:char __size[56]
static long[]
Dimensions for array field:char __size[56]
static final SequenceLayout
Layout for field:char __size[56]
static final long
Offset for field:char __size[56]
static 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 long
sizeof()
The size (in bytes) of this union
-
Method Details
-
layout
The layout of this union -
__size$layout
Layout for field:char __size[56]
-
__size$offset
public static final long __size$offset()Offset for field:char __size[56]
-
__size
Getter for field:char __size[56]
-
__size
Setter for field:char __size[56]
-
__size$dimensions
public static long[] __size$dimensions()Dimensions for array field:char __size[56]
-
__size
Indexed getter for field:char __size[56]
-
__size
Indexed setter for field:char __size[56]
-
__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 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()
-