Class _ValueDataUnion
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject._ValueDataUnion
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new _ValueDataUnion._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._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._ValueDataUnion(Arena arena) Allocate a new _ValueDataUnion._ValueDataUnion(MemorySegment address) Create a _ValueDataUnion proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.doubleRead the value of the fieldv_double.floatRead the value of the fieldv_float.intreadVInt()Read the value of the fieldv_int.longRead the value of the fieldv_int64.intRead the value of the fieldv_long.Read the value of the fieldv_pointer.intRead the value of the fieldv_uint.longRead the value of the fieldv_uint64.intRead the value of the fieldv_ulong.voidwriteVDouble(double vDouble) Write a value in the fieldv_double.voidwriteVFloat(float vFloat) Write a value in the fieldv_float.voidwriteVInt(int vInt) Write a value in the fieldv_int.voidwriteVInt64(long vInt64) Write a value in the fieldv_int64.voidwriteVLong(int vLong) Write a value in the fieldv_long.voidwriteVPointer(MemorySegment vPointer) Write a value in the fieldv_pointer.voidwriteVUint(int vUint) Write a value in the fieldv_uint.voidwriteVUint64(long vUint64) Write a value in the fieldv_uint64.voidwriteVUlong(int vUlong) Write a value in the fieldv_ulong.Methods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
_ValueDataUnion
Create a _ValueDataUnion proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
_ValueDataUnion
Allocate a new _ValueDataUnion.- Parameters:
arena- to control the memory allocation scope
-
_ValueDataUnion
public _ValueDataUnion()Allocate a new _ValueDataUnion. The memory is allocated withArena.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 fieldvIntvUint- value for the fieldvUintvLong- value for the fieldvLongvUlong- value for the fieldvUlongvInt64- value for the fieldvInt64vUint64- value for the fieldvUint64vFloat- value for the fieldvFloatvDouble- value for the fieldvDoublevPointer- value for the fieldvPointerarena- 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 withArena.ofAuto().- Parameters:
vInt- value for the fieldvIntvUint- value for the fieldvUintvLong- value for the fieldvLongvUlong- value for the fieldvUlongvInt64- value for the fieldvInt64vUint64- value for the fieldvUint64vFloat- value for the fieldvFloatvDouble- value for the fieldvDoublevPointer- value for the fieldvPointer
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readVInt
public int readVInt()Read the value of the fieldv_int.- Returns:
- The value of the field
v_int
-
writeVInt
public void writeVInt(int vInt) Write a value in the fieldv_int.- Parameters:
vInt- The new value for the fieldv_int
-
readVUint
public int readVUint()Read the value of the fieldv_uint.- Returns:
- The value of the field
v_uint
-
writeVUint
public void writeVUint(int vUint) Write a value in the fieldv_uint.- Parameters:
vUint- The new value for the fieldv_uint
-
readVLong
public int readVLong()Read the value of the fieldv_long.- Returns:
- The value of the field
v_long
-
writeVLong
public void writeVLong(int vLong) Write a value in the fieldv_long.- Parameters:
vLong- The new value for the fieldv_long
-
readVUlong
public int readVUlong()Read the value of the fieldv_ulong.- Returns:
- The value of the field
v_ulong
-
writeVUlong
public void writeVUlong(int vUlong) Write a value in the fieldv_ulong.- Parameters:
vUlong- The new value for the fieldv_ulong
-
readVInt64
public long readVInt64()Read the value of the fieldv_int64.- Returns:
- The value of the field
v_int64
-
writeVInt64
public void writeVInt64(long vInt64) Write a value in the fieldv_int64.- Parameters:
vInt64- The new value for the fieldv_int64
-
readVUint64
public long readVUint64()Read the value of the fieldv_uint64.- Returns:
- The value of the field
v_uint64
-
writeVUint64
public void writeVUint64(long vUint64) Write a value in the fieldv_uint64.- Parameters:
vUint64- The new value for the fieldv_uint64
-
readVFloat
public float readVFloat()Read the value of the fieldv_float.- Returns:
- The value of the field
v_float
-
writeVFloat
public void writeVFloat(float vFloat) Write a value in the fieldv_float.- Parameters:
vFloat- The new value for the fieldv_float
-
readVDouble
public double readVDouble()Read the value of the fieldv_double.- Returns:
- The value of the field
v_double
-
writeVDouble
public void writeVDouble(double vDouble) Write a value in the fieldv_double.- Parameters:
vDouble- The new value for the fieldv_double
-
readVPointer
Read the value of the fieldv_pointer.- Returns:
- The value of the field
v_pointer
-
writeVPointer
Write a value in the fieldv_pointer.- Parameters:
vPointer- The new value for the fieldv_pointer
-