Package app.photofox.vipsffm.jextract
Class _GValueArray
java.lang.Object
app.photofox.vipsffm.jextract._GValueArray
- Direct Known Subclasses:
GValueArray
struct _GValueArray {
guint n_values;
GValue *values;
guint n_prealloced;
}
-
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 final GroupLayoutlayout()The layout of this structstatic intn_prealloced(MemorySegment struct) Getter for field:guint n_preallocedstatic voidn_prealloced(MemorySegment struct, int fieldValue) Setter for field:guint n_preallocedstatic final ValueLayout.OfIntLayout for field:guint n_preallocedstatic final longOffset for field:guint n_preallocedstatic intn_values(MemorySegment struct) Getter for field:guint n_valuesstatic voidn_values(MemorySegment struct, int fieldValue) Setter for field:guint n_valuesstatic final ValueLayout.OfIntLayout for field:guint n_valuesstatic final longOffset for field:guint n_valuesstatic 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 structstatic MemorySegmentvalues(MemorySegment struct) Getter for field:GValue *valuesstatic voidvalues(MemorySegment struct, MemorySegment fieldValue) Setter for field:GValue *valuesstatic final AddressLayoutLayout for field:GValue *valuesstatic final longOffset for field:GValue *values
-
Method Details
-
layout
The layout of this struct -
n_values$layout
Layout for field:guint n_values -
n_values$offset
public static final long n_values$offset()Offset for field:guint n_values -
n_values
Getter for field:guint n_values -
n_values
Setter for field:guint n_values -
values$layout
Layout for field:GValue *values -
values$offset
public static final long values$offset()Offset for field:GValue *values -
values
Getter for field:GValue *values -
values
Setter for field:GValue *values -
n_prealloced$layout
Layout for field:guint n_prealloced -
n_prealloced$offset
public static final long n_prealloced$offset()Offset for field:guint n_prealloced -
n_prealloced
Getter for field:guint n_prealloced -
n_prealloced
Setter for field:guint n_prealloced -
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 struct -
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()
-