Re: getting GVariantType serialized size ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi all,

Is there a way to obtain the serialized size of a GVariantType when it is a definite type ? The g_variant_type API does not contain any counterpart of g_variant_get_size.

Well, i managed to get type size with a temporary value like this:

 GVariant *tmp = g_variant_new ("(uuuu)");
 gsize         tsize = g_variant_get_size (gvartmp);
 g_variant_unref (tmp);

instead of

gsize tsize = g_variant_type_get_serialized_size ("(uuuu)");


I know my question is weird ...

Best regards,

Laurent



_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux