Variant.printf


Description:

[ Version ( since = "2.38" ) ]
public Variant.printf (string format_string, ...)

Creates a string-type GVariant using printf formatting.

This is similar to calling to_string and then Variant.string but it saves a temporary variable and an unnecessary copy.

Parameters:

format_string

a printf-style format string

...

arguments for format_string

Returns:

a floating reference to a new string Variant instance