Variant.dupString

Similar to g_variant_get_string() 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 g_free().

class Variant
string
dupString
(
out size_t length
)

Parameters

length size_t

a pointer to a #gsize, to store the length

Return: a newly allocated string, UTF-8 encoded

Meta

Since

2.24