VariantBuilder.clear

Releases all memory associated with a glib.VariantBuilder without freeing the glib.VariantBuilder structure itself.

It typically only makes sense to do this on a stack-allocated glib.VariantBuilder if you want to abort building the value part-way through. This function need not be called if you call Variant.builderEnd and it also doesn't need to be called on builders allocated with Variant.builderNew (see Variant.builderUnref for that).

This function leaves the glib.VariantBuilder structure set to all-zeros. It is valid to call this function on either an initialised glib.VariantBuilder or one that is set to all-zeros but it is not valid to call this function on uninitialised memory.

class VariantBuilder
void
clear
()

Meta

Since

2.24