Class _GMutex
java.lang.Object
app.photofox.vipsffm.jextract._GMutex
-
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 MemorySegmenti(MemorySegment union) Getter for field:guint i[2]static inti(MemorySegment union, long index0) Indexed getter for field:guint i[2]static voidi(MemorySegment union, long index0, int fieldValue) Indexed setter for field:guint i[2]static voidi(MemorySegment union, MemorySegment fieldValue) Setter for field:guint i[2]static long[]Dimensions for array field:guint i[2]static final SequenceLayouti$layout()Layout for field:guint i[2]static final longi$offset()Offset for field:guint i[2]static final GroupLayoutlayout()The layout of this unionstatic MemorySegmentp(MemorySegment union) Getter for field:gpointer pstatic voidp(MemorySegment union, MemorySegment fieldValue) Setter for field:gpointer pstatic final AddressLayoutp$layout()Layout for field:gpointer pstatic final longp$offset()Offset for field:gpointer pstatic 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 -
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 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()
-