RefString


Object Hierarchy:

GLib.RefString GLib.RefString GLib.RefString

Description:

[ CCode ( cprefix = "g_ref_string_" , ref_function = "g_ref_string_acquire" , type_id = "G_TYPE_STRING" , unref_function = "g_ref_string_release" ) ]
[ Version ( since = "2.58" ) ]
public class RefString

A typedef for a reference-counted string.

A pointer to a RefString can be treated like a standard `char*` array by all code, but can additionally have `g_ref_string_*()` methods called on it. `g_ref_string_*()` methods cannot be called on `char*` arrays not allocated using RefString.

If using RefString with autocleanups, g_autoptr must be used rather than g_autofree, so that the reference counting metadata is also freed.


Namespace: GLib
Package: glib-2.0

Content:

Properties:

Creation methods:

Methods: