Class _GMutex
java.lang.Object
app.photofox.vipsffm.jextract._GMutex
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 MemorySegment
i
(MemorySegment union) Getter for field:guint i[2]
static int
i
(MemorySegment union, long index0) Indexed getter for field:guint i[2]
static void
i
(MemorySegment union, long index0, int fieldValue) Indexed setter for field:guint i[2]
static void
i
(MemorySegment union, MemorySegment fieldValue) Setter for field:guint i[2]
static long[]
Dimensions for array field:guint i[2]
static final SequenceLayout
i$layout()
Layout for field:guint i[2]
static final long
i$offset()
Offset for field:guint i[2]
static final GroupLayout
layout()
The layout of this unionstatic MemorySegment
p
(MemorySegment union) Getter for field:gpointer p
static void
p
(MemorySegment union, MemorySegment fieldValue) Setter for field:gpointer p
static final AddressLayout
p$layout()
Layout for field:gpointer p
static final long
p$offset()
Offset for field:gpointer p
static 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 -
p$layout
Layout for field:gpointer p
-
p$offset
public static final long p$offset()Offset for field:gpointer p
-
p
Getter for field:gpointer p
-
p
Setter for field:gpointer p
-
i$layout
Layout for field:guint i[2]
-
i$offset
public static final long i$offset()Offset for field:guint i[2]
-
i
Getter for field:guint i[2]
-
i
Setter for field:guint i[2]
-
i$dimensions
public static long[] i$dimensions()Dimensions for array field:guint i[2]
-
i
Indexed getter for field:guint i[2]
-
i
Indexed setter for field:guint i[2]
-
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()
-