Package org.gnome.gio
Class DBusArgInfo
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.DBusArgInfo
- All Implemented Interfaces:
Proxy
Information about an argument for a method or a signal.
- Since:
- 2.26
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new DBusArgInfo.DBusArgInfo(int refCount, String name, String signature, DBusAnnotationInfo[] annotations) Allocate a new DBusArgInfo with the fields set to the provided values.DBusArgInfo(int refCount, String name, String signature, DBusAnnotationInfo[] annotations, Arena arena) Allocate a new DBusArgInfo with the fields set to the provided values.DBusArgInfo(Arena arena) Allocate a new DBusArgInfo.DBusArgInfo(MemorySegment address) Create a DBusArgInfo proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the DBusArgInfo class@Nullable DBusAnnotationInfo @Nullable []Read the value of the fieldannotations.readName()Read the value of the fieldname.intRead the value of the fieldref_count.Read the value of the fieldsignature.ref()If this DBusArgInfo is statically allocated does nothing.voidunref()If this DBusArgInfo is statically allocated, does nothing.voidwriteAnnotations(@Nullable DBusAnnotationInfo @Nullable [] annotations, Arena _arena) Write a value in the fieldannotations.voidWrite a value in the fieldname.voidwriteRefCount(int refCount) Write a value in the fieldref_count.voidwriteSignature(String signature, Arena _arena) Write a value in the fieldsignature.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DBusArgInfo
Create a DBusArgInfo proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
DBusArgInfo
Allocate a new DBusArgInfo.- Parameters:
arena- to control the memory allocation scope
-
DBusArgInfo
public DBusArgInfo()Allocate a new DBusArgInfo. The memory is allocated withArena.ofAuto(). -
DBusArgInfo
public DBusArgInfo(int refCount, String name, String signature, DBusAnnotationInfo[] annotations, Arena arena) Allocate a new DBusArgInfo with the fields set to the provided values.- Parameters:
refCount- value for the fieldrefCountname- value for the fieldnamesignature- value for the fieldsignatureannotations- value for the fieldannotationsarena- to control the memory allocation scope
-
DBusArgInfo
Allocate a new DBusArgInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
refCount- value for the fieldrefCountname- value for the fieldnamesignature- value for the fieldsignatureannotations- value for the fieldannotations
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readRefCount
public int readRefCount()Read the value of the fieldref_count.- Returns:
- The value of the field
ref_count
-
writeRefCount
public void writeRefCount(int refCount) Write a value in the fieldref_count.- Parameters:
refCount- The new value for the fieldref_count
-
readName
-
writeName
-
readSignature
Read the value of the fieldsignature.- Returns:
- The value of the field
signature
-
writeSignature
-
readAnnotations
Read the value of the fieldannotations.- Returns:
- The value of the field
annotations
-
writeAnnotations
Write a value in the fieldannotations.- Parameters:
annotations- The new value for the fieldannotations_arena- to control the memory allocation scope
-
ref
If this DBusArgInfo is statically allocated does nothing. Otherwise increases the reference count.- Returns:
- The same
info. - Since:
- 2.26
-
unref
public void unref()If this DBusArgInfo is statically allocated, does nothing. Otherwise decreases the reference count ofinfo.When its reference count drops to 0, the memory used is freed.- Since:
- 2.26
-