Class _GValue.data

java.lang.Object
app.photofox.vipsffm.jextract._GValue.data
Enclosing class:
_GValue

public static class _GValue.data extends Object
union {
    gint v_int;
    guint v_uint;
    glong v_long;
    gulong v_ulong;
    gint64 v_int64;
    guint64 v_uint64;
    gfloat v_float;
    gdouble v_double;
    gpointer v_pointer;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this union
    • v_int$layout

      public static final ValueLayout.OfInt v_int$layout()
      Layout for field:
      gint v_int
      
    • v_int$offset

      public static final long v_int$offset()
      Offset for field:
      gint v_int
      
    • v_int

      public static int v_int(MemorySegment union)
      Getter for field:
      gint v_int
      
    • v_int

      public static void v_int(MemorySegment union, int fieldValue)
      Setter for field:
      gint v_int
      
    • v_uint$layout

      public static final ValueLayout.OfInt v_uint$layout()
      Layout for field:
      guint v_uint
      
    • v_uint$offset

      public static final long v_uint$offset()
      Offset for field:
      guint v_uint
      
    • v_uint

      public static int v_uint(MemorySegment union)
      Getter for field:
      guint v_uint
      
    • v_uint

      public static void v_uint(MemorySegment union, int fieldValue)
      Setter for field:
      guint v_uint
      
    • v_long$layout

      public static final ValueLayout.OfLong v_long$layout()
      Layout for field:
      glong v_long
      
    • v_long$offset

      public static final long v_long$offset()
      Offset for field:
      glong v_long
      
    • v_long

      public static long v_long(MemorySegment union)
      Getter for field:
      glong v_long
      
    • v_long

      public static void v_long(MemorySegment union, long fieldValue)
      Setter for field:
      glong v_long
      
    • v_ulong$layout

      public static final ValueLayout.OfLong v_ulong$layout()
      Layout for field:
      gulong v_ulong
      
    • v_ulong$offset

      public static final long v_ulong$offset()
      Offset for field:
      gulong v_ulong
      
    • v_ulong

      public static long v_ulong(MemorySegment union)
      Getter for field:
      gulong v_ulong
      
    • v_ulong

      public static void v_ulong(MemorySegment union, long fieldValue)
      Setter for field:
      gulong v_ulong
      
    • v_int64$layout

      public static final ValueLayout.OfLong v_int64$layout()
      Layout for field:
      gint64 v_int64
      
    • v_int64$offset

      public static final long v_int64$offset()
      Offset for field:
      gint64 v_int64
      
    • v_int64

      public static long v_int64(MemorySegment union)
      Getter for field:
      gint64 v_int64
      
    • v_int64

      public static void v_int64(MemorySegment union, long fieldValue)
      Setter for field:
      gint64 v_int64
      
    • v_uint64$layout

      public static final ValueLayout.OfLong v_uint64$layout()
      Layout for field:
      guint64 v_uint64
      
    • v_uint64$offset

      public static final long v_uint64$offset()
      Offset for field:
      guint64 v_uint64
      
    • v_uint64

      public static long v_uint64(MemorySegment union)
      Getter for field:
      guint64 v_uint64
      
    • v_uint64

      public static void v_uint64(MemorySegment union, long fieldValue)
      Setter for field:
      guint64 v_uint64
      
    • v_float$layout

      public static final ValueLayout.OfFloat v_float$layout()
      Layout for field:
      gfloat v_float
      
    • v_float$offset

      public static final long v_float$offset()
      Offset for field:
      gfloat v_float
      
    • v_float

      public static float v_float(MemorySegment union)
      Getter for field:
      gfloat v_float
      
    • v_float

      public static void v_float(MemorySegment union, float fieldValue)
      Setter for field:
      gfloat v_float
      
    • v_double$layout

      public static final ValueLayout.OfDouble v_double$layout()
      Layout for field:
      gdouble v_double
      
    • v_double$offset

      public static final long v_double$offset()
      Offset for field:
      gdouble v_double
      
    • v_double

      public static double v_double(MemorySegment union)
      Getter for field:
      gdouble v_double
      
    • v_double

      public static void v_double(MemorySegment union, double fieldValue)
      Setter for field:
      gdouble v_double
      
    • v_pointer$layout

      public static final AddressLayout v_pointer$layout()
      Layout for field:
      gpointer v_pointer
      
    • v_pointer$offset

      public static final long v_pointer$offset()
      Offset for field:
      gpointer v_pointer
      
    • v_pointer

      public static MemorySegment v_pointer(MemorySegment union)
      Getter for field:
      gpointer v_pointer
      
    • v_pointer

      public static void v_pointer(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      gpointer v_pointer
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this union
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()