Variant.take_string


Description:

public Variant.take_string (string str)

Creates a string Variant with the contents of string.

string must be valid utf8.

This function consumes string. g_free will be called on string when it is no longer required.

You must not modify or access string in any other way after passing it to this function. It is even possible that string is immediately freed.

Parameters:

string

a normal utf8 nul-terminated string

Returns:

a floating reference to a new string Variant instance