Class StrvBuilder

java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.glib.StrvBuilder
All Implemented Interfaces:
Proxy

@Generated("io.github.jwharm.JavaGI") public class StrvBuilder extends ProxyInstance
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 }));