Class _GEnumValue
java.lang.Object
app.photofox.vipsffm.jextract._GEnumValue
- Direct Known Subclasses:
GEnumValue
struct _GEnumValue {
gint value;
const gchar *value_name;
const gchar *value_nick;
}
-
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 final GroupLayout
layout()
The layout of this structstatic 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 structstatic int
value
(MemorySegment struct) Getter for field:gint value
static void
value
(MemorySegment struct, int fieldValue) Setter for field:gint value
static MemorySegment
value_name
(MemorySegment struct) Getter for field:const gchar *value_name
static void
value_name
(MemorySegment struct, MemorySegment fieldValue) Setter for field:const gchar *value_name
static final AddressLayout
Layout for field:const gchar *value_name
static final long
Offset for field:const gchar *value_name
static MemorySegment
value_nick
(MemorySegment struct) Getter for field:const gchar *value_nick
static void
value_nick
(MemorySegment struct, MemorySegment fieldValue) Setter for field:const gchar *value_nick
static final AddressLayout
Layout for field:const gchar *value_nick
static final long
Offset for field:const gchar *value_nick
static final ValueLayout.OfInt
Layout for field:gint value
static final long
Offset for field:gint value
-
Method Details
-
layout
The layout of this struct -
value$layout
Layout for field:gint value
-
value$offset
public static final long value$offset()Offset for field:gint value
-
value
Getter for field:gint value
-
value
Setter for field:gint value
-
value_name$layout
Layout for field:const gchar *value_name
-
value_name$offset
public static final long value_name$offset()Offset for field:const gchar *value_name
-
value_name
Getter for field:const gchar *value_name
-
value_name
Setter for field:const gchar *value_name
-
value_nick$layout
Layout for field:const gchar *value_nick
-
value_nick$offset
public static final long value_nick$offset()Offset for field:const gchar *value_nick
-
value_nick
Getter for field:const gchar *value_nick
-
value_nick
Setter for field:const gchar *value_nick
-
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 struct -
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()
-