public static int main (string[] args) {
Variant var1 = new Variant.bytestring ("Hello, world!");
size_t length = 0;
// Output: ``'Hello, world!', 13``
print ("'%s', %"+size_t.FORMAT+"\n", var1.dup_bytestring (out length), length);
// Output: ``'Hello, world!'``
print ("'%s'\n", var1.get_bytestring ());
return 0;
}
valac --pkg glib-2.0 GLib.Variant.Variant.bytestring.vala