set_use_gvariant


Description:

public void set_use_gvariant (bool use_gvariant)

Sets the [property@Client:use-gvariant] property.

This function sets if [struct@GLib.Variant] should be used to communicate with the peer. Doing so can allow for more efficient communication by avoiding expensive parsing overhead and memory allocations. However, it requires that the peer also supports [struct@GLib.Variant] encoding.

Parameters:

this

A Client

use_gvariant

If [struct@GLib.Variant] should be used