Value.stealString

Steal ownership on contents of a G_TYPE_STRING #GValue. As a result of this operation the value's contents will be reset to null.

The purpose of this call is to provide a way to avoid an extra copy when some object have been serialized into string through #GValue API.

NOTE: for safety and compatibility purposes, if #GValue contains static string, or an interned one, this function will return a copy of the string. Otherwise the transfer notation would be ambiguous.

class Value
string
stealString
()

Return Value

Type: string

string content of value; Should be freed with glib.global.gfree when no longer needed.