Variant.printString

Behaves as g_variant_print(), but operates on a #GString.

If @string is non-%NULL then it is appended to and returned. Else, a new empty #GString is allocated and it is returned.

class Variant
printString

Parameters

string_ StringG

a #GString, or %NULL

typeAnnotate bool

%TRUE if type information should be included in the output

Return Value

Type: StringG

a #GString containing the string

Meta

Since

2.24