Class _ValueDataUnion

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject._ValueDataUnion
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class _ValueDataUnion extends ProxyInstance
  • Constructor Details

    • _ValueDataUnion

      public _ValueDataUnion(MemorySegment address)
      Create a _ValueDataUnion proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • _ValueDataUnion

      public _ValueDataUnion(Arena arena)
      Allocate a new _ValueDataUnion.
      Parameters:
      arena - to control the memory allocation scope
    • _ValueDataUnion

      public _ValueDataUnion()
      Allocate a new _ValueDataUnion. The memory is allocated with Arena.ofAuto().
    • _ValueDataUnion

      public _ValueDataUnion(int vInt, int vUint, int vLong, int vUlong, long vInt64, long vUint64, float vFloat, double vDouble, MemorySegment vPointer, Arena arena)
      Allocate a new _ValueDataUnion with the fields set to the provided values.
      Parameters:
      vInt - value for the field vInt
      vUint - value for the field vUint
      vLong - value for the field vLong
      vUlong - value for the field vUlong
      vInt64 - value for the field vInt64
      vUint64 - value for the field vUint64
      vFloat - value for the field vFloat
      vDouble - value for the field vDouble
      vPointer - value for the field vPointer
      arena - to control the memory allocation scope
    • _ValueDataUnion

      public _ValueDataUnion(int vInt, int vUint, int vLong, int vUlong, long vInt64, long vUint64, float vFloat, double vDouble, MemorySegment vPointer)
      Allocate a new _ValueDataUnion with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      vInt - value for the field vInt
      vUint - value for the field vUint
      vLong - value for the field vLong
      vUlong - value for the field vUlong
      vInt64 - value for the field vInt64
      vUint64 - value for the field vUint64
      vFloat - value for the field vFloat
      vDouble - value for the field vDouble
      vPointer - value for the field vPointer
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readVInt

      public int readVInt()
      Read the value of the field v_int.
      Returns:
      The value of the field v_int
    • writeVInt

      public void writeVInt(int vInt)
      Write a value in the field v_int.
      Parameters:
      vInt - The new value for the field v_int
    • readVUint

      public int readVUint()
      Read the value of the field v_uint.
      Returns:
      The value of the field v_uint
    • writeVUint

      public void writeVUint(int vUint)
      Write a value in the field v_uint.
      Parameters:
      vUint - The new value for the field v_uint
    • readVLong

      public int readVLong()
      Read the value of the field v_long.
      Returns:
      The value of the field v_long
    • writeVLong

      public void writeVLong(int vLong)
      Write a value in the field v_long.
      Parameters:
      vLong - The new value for the field v_long
    • readVUlong

      public int readVUlong()
      Read the value of the field v_ulong.
      Returns:
      The value of the field v_ulong
    • writeVUlong

      public void writeVUlong(int vUlong)
      Write a value in the field v_ulong.
      Parameters:
      vUlong - The new value for the field v_ulong
    • readVInt64

      public long readVInt64()
      Read the value of the field v_int64.
      Returns:
      The value of the field v_int64
    • writeVInt64

      public void writeVInt64(long vInt64)
      Write a value in the field v_int64.
      Parameters:
      vInt64 - The new value for the field v_int64
    • readVUint64

      public long readVUint64()
      Read the value of the field v_uint64.
      Returns:
      The value of the field v_uint64
    • writeVUint64

      public void writeVUint64(long vUint64)
      Write a value in the field v_uint64.
      Parameters:
      vUint64 - The new value for the field v_uint64
    • readVFloat

      public float readVFloat()
      Read the value of the field v_float.
      Returns:
      The value of the field v_float
    • writeVFloat

      public void writeVFloat(float vFloat)
      Write a value in the field v_float.
      Parameters:
      vFloat - The new value for the field v_float
    • readVDouble

      public double readVDouble()
      Read the value of the field v_double.
      Returns:
      The value of the field v_double
    • writeVDouble

      public void writeVDouble(double vDouble)
      Write a value in the field v_double.
      Parameters:
      vDouble - The new value for the field v_double
    • readVPointer

      public MemorySegment readVPointer()
      Read the value of the field v_pointer.
      Returns:
      The value of the field v_pointer
    • writeVPointer

      public void writeVPointer(MemorySegment vPointer)
      Write a value in the field v_pointer.
      Parameters:
      vPointer - The new value for the field v_pointer