VariantG.dupString

Similar to glib.variant.VariantG.getString except that instead of returning a constant string, the string is duplicated.

The string will always be UTF-8 encoded.

The return value must be freed using glib.global.gfree.

class VariantG
string
dupString
(
out size_t length
)

Parameters

length size_t

a pointer to a #gsize, to store the length

Return Value

Type: string

a newly allocated string, UTF-8 encoded