StrvBuilder
class StrvBuilder(val glibStrvBuilderPointer: <Error class: unknown class><<Error class: unknown class>>) : ProxyInstance(source)
GStrvBuilder
is a helper object to build a null-terminated string arrays.
The following example shows how to build a two element array:
g_autoptr(GStrvBuilder) builder = g_strv_builder_new ();
g_strv_builder_add (builder, "hello");
g_strv_builder_add (builder, "world");
g_auto(GStrv) array = g_strv_builder_end (builder);
g_assert_true (g_strv_equal (array, (const char *[]) { "hello", "world", NULL }));
Content copied to clipboard
Skipped during bindings generation
method
add_many
: Varargs parameter is not supported
Since
2.68
Constructors
Functions
Link copied to clipboard
Registers a cleaner to be executed when this proxy object is garbage collected.
Link copied to clipboard
Link copied to clipboard
Atomically increments the reference count of @builder by one. This function is thread-safe and may be called from any thread.
Link copied to clipboard
Removes a previously registered cleaner from this proxy object.
Link copied to clipboard
Decreases the reference count on the string vector builder, and returns its contents as a NULL
-terminated string array.