Package org.gnome.glib
Class Tuples
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.Tuples
- All Implemented Interfaces:
Proxy
Deprecated.
Rarely used API
The
GTuples struct is used to return records (or tuples) from the
GRelation by g_relation_select(). It only contains one public
member - the number of records that matched. To access the matched
records, you must use g_tuples_index().-
Constructor Summary
ConstructorsConstructorDescriptionTuples()Deprecated.Allocate a new Tuples.Tuples(int len) Deprecated.Allocate a new Tuples with the fields set to the provided values.Deprecated.Allocate a new Tuples with the fields set to the provided values.Deprecated.Allocate a new Tuples.Tuples(MemorySegment address) Deprecated.Create a Tuples proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Deprecated.Rarely used APIstatic MemoryLayoutDeprecated.The memory layout of the native struct.@Nullable MemorySegmentindex(int index, int field) Deprecated.Rarely used APIintreadLen()Deprecated.Read the value of the fieldlen.voidwriteLen(int len) Deprecated.Write a value in the fieldlen.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Tuples
Deprecated.Create a Tuples proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
Tuples
Deprecated.Allocate a new Tuples.- Parameters:
arena- to control the memory allocation scope
-
Tuples
-
Tuples
Deprecated.Allocate a new Tuples with the fields set to the provided values.- Parameters:
len- value for the fieldlenarena- to control the memory allocation scope
-
Tuples
public Tuples(int len) Deprecated.Allocate a new Tuples with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
len- value for the fieldlen
-
-
Method Details
-
getMemoryLayout
Deprecated.The memory layout of the native struct.- Returns:
- the memory layout
-
readLen
public int readLen()Deprecated.Read the value of the fieldlen.- Returns:
- The value of the field
len
-
writeLen
public void writeLen(int len) Deprecated.Write a value in the fieldlen.- Parameters:
len- The new value for the fieldlen
-
destroy
Deprecated.Rarely used APIFrees the records which were returned by g_relation_select(). This should always be called after g_relation_select() when you are finished with the records. The records are not removed from theGRelation. -
index
Deprecated.Rarely used APIGets a field from the records returned by g_relation_select(). It returns the given field of the record at the given index. The returned value should not be changed.- Parameters:
index- the index of the record.field- the field to return.- Returns:
- the field of the record.
-