VariantBuilder.this

Allocates and initialises a new #GVariantBuilder.

You should call glib.variant_builder.VariantBuilder.unref on the return value when it is no longer needed. The memory will not be automatically freed by any other call.

In most cases it is easier to place a #GVariantBuilder directly on the stack of the calling function and initialise it with glib.variant_builder.VariantBuilder.init_.

  1. this(void* ptr, Flag!"Take" take)
  2. this(glib.variant_type.VariantType type)
    class VariantBuilder

Parameters

type glib.variant_type.VariantType

a container type

Return Value

a #GVariantBuilder