Package org.gnome.gio
Class DBusArgInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gio.DBusArgInfo
-
Constructor Summary
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the DBusArgInfo classRead the value of the fieldannotations
.readName()
Read the value of the fieldname
.int
Read the value of the fieldref_count
.Read the value of the fieldsignature
.ref()
If this DBusArgInfo is statically allocated does nothing.void
unref()
If this DBusArgInfo is statically allocated, does nothing.void
writeAnnotations
(DBusAnnotationInfo[] annotations, Arena _arena) Write a value in the fieldannotations
.void
Write a value in the fieldname
.void
writeRefCount
(int refCount) Write a value in the fieldref_count
.void
writeSignature
(String signature, Arena _arena) Write a value in the fieldsignature
.Methods inherited from class io.github.jwharm.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 fieldrefCount
name
- value for the fieldname
signature
- value for the fieldsignature
annotations
- value for the fieldannotations
arena
- 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 fieldrefCount
name
- value for the fieldname
signature
- value for the fieldsignature
annotations
- 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 this DBusArgInfo.
-
unref
public void unref()If this DBusArgInfo is statically allocated, does nothing. Otherwise decreases the reference count of this DBusArgInfo. When its reference count drops to 0, the memory used is freed.
-