Class DBusArgInfo

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class DBusArgInfo extends ProxyInstance
Information about an argument for a method or a signal.
Since:
2.26
  • Constructor Details

    • DBusArgInfo

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

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

      public DBusArgInfo()
      Allocate a new DBusArgInfo. The memory is allocated with Arena.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 field refCount
      name - value for the field name
      signature - value for the field signature
      annotations - value for the field annotations
      arena - to control the memory allocation scope
    • DBusArgInfo

      public DBusArgInfo(int refCount, String name, String signature, DBusAnnotationInfo[] annotations)
      Allocate a new DBusArgInfo with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      refCount - value for the field refCount
      name - value for the field name
      signature - value for the field signature
      annotations - value for the field annotations
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the DBusArgInfo class.
      Returns:
      the GType
    • getMemoryLayout

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

      public int readRefCount()
      Read the value of the field ref_count.
      Returns:
      The value of the field ref_count
    • writeRefCount

      public void writeRefCount(int refCount)
      Write a value in the field ref_count.
      Parameters:
      refCount - The new value for the field ref_count
    • readName

      public String readName()
      Read the value of the field name.
      Returns:
      The value of the field name
    • writeName

      public void writeName(String name, Arena _arena)
      Write a value in the field name.
      Parameters:
      name - The new value for the field name
      _arena - to control the memory allocation scope
    • readSignature

      public String readSignature()
      Read the value of the field signature.
      Returns:
      The value of the field signature
    • writeSignature

      public void writeSignature(String signature, Arena _arena)
      Write a value in the field signature.
      Parameters:
      signature - The new value for the field signature
      _arena - to control the memory allocation scope
    • readAnnotations

      public @Nullable DBusAnnotationInfo @Nullable [] readAnnotations()
      Read the value of the field annotations.
      Returns:
      The value of the field annotations
    • writeAnnotations

      public void writeAnnotations(@Nullable DBusAnnotationInfo @Nullable [] annotations, Arena _arena)
      Write a value in the field annotations.
      Parameters:
      annotations - The new value for the field annotations
      _arena - to control the memory allocation scope
    • ref

      public DBusArgInfo 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 of info. When its reference count drops to 0, the memory used is freed.
      Since:
      2.26