Package org.gnome.gio
Class DBusMethodInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gio.DBusMethodInfo
-
Constructor Summary
ConstructorDescriptionAllocate a new DBusMethodInfo.DBusMethodInfo
(int refCount, String name, DBusArgInfo[] inArgs, DBusArgInfo[] outArgs, DBusAnnotationInfo[] annotations) Allocate a new DBusMethodInfo with the fields set to the provided values.DBusMethodInfo
(int refCount, String name, DBusArgInfo[] inArgs, DBusArgInfo[] outArgs, DBusAnnotationInfo[] annotations, Arena arena) Allocate a new DBusMethodInfo with the fields set to the provided values.DBusMethodInfo
(Arena arena) Allocate a new DBusMethodInfo.DBusMethodInfo
(MemorySegment address) Create a DBusMethodInfo 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 DBusMethodInfo classRead the value of the fieldannotations
.Read the value of the fieldin_args
.readName()
Read the value of the fieldname
.Read the value of the fieldout_args
.int
Read the value of the fieldref_count
.ref()
If this DBusMethodInfo is statically allocated does nothing.void
unref()
If this DBusMethodInfo is statically allocated, does nothing.void
writeAnnotations
(DBusAnnotationInfo[] annotations, Arena _arena) Write a value in the fieldannotations
.void
writeInArgs
(DBusArgInfo[] inArgs, Arena _arena) Write a value in the fieldin_args
.void
Write a value in the fieldname
.void
writeOutArgs
(DBusArgInfo[] outArgs, Arena _arena) Write a value in the fieldout_args
.void
writeRefCount
(int refCount) Write a value in the fieldref_count
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DBusMethodInfo
Create a DBusMethodInfo proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
DBusMethodInfo
Allocate a new DBusMethodInfo.- Parameters:
arena
- to control the memory allocation scope
-
DBusMethodInfo
public DBusMethodInfo()Allocate a new DBusMethodInfo. The memory is allocated withArena.ofAuto()
. -
DBusMethodInfo
public DBusMethodInfo(int refCount, String name, DBusArgInfo[] inArgs, DBusArgInfo[] outArgs, DBusAnnotationInfo[] annotations, Arena arena) Allocate a new DBusMethodInfo with the fields set to the provided values.- Parameters:
refCount
- value for the fieldrefCount
name
- value for the fieldname
inArgs
- value for the fieldinArgs
outArgs
- value for the fieldoutArgs
annotations
- value for the fieldannotations
arena
- to control the memory allocation scope
-
DBusMethodInfo
public DBusMethodInfo(int refCount, String name, DBusArgInfo[] inArgs, DBusArgInfo[] outArgs, DBusAnnotationInfo[] annotations) Allocate a new DBusMethodInfo 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
inArgs
- value for the fieldinArgs
outArgs
- value for the fieldoutArgs
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
-
readInArgs
Read the value of the fieldin_args
.- Returns:
- The value of the field
in_args
-
writeInArgs
Write a value in the fieldin_args
.- Parameters:
inArgs
- The new value for the fieldin_args
_arena
- to control the memory allocation scope
-
readOutArgs
Read the value of the fieldout_args
.- Returns:
- The value of the field
out_args
-
writeOutArgs
Write a value in the fieldout_args
.- Parameters:
outArgs
- The new value for the fieldout_args
_arena
- to control the memory allocation scope
-
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 DBusMethodInfo is statically allocated does nothing. Otherwise increases the reference count.- Returns:
- The same this DBusMethodInfo.
-
unref
public void unref()If this DBusMethodInfo is statically allocated, does nothing. Otherwise decreases the reference count of this DBusMethodInfo. When its reference count drops to 0, the memory used is freed.
-