Re: getting GVariantType serialized size ?
- From: Laurent Wan <dev wan free fr>
- To: gtk-list gnome org
- Subject: Re: getting GVariantType serialized size ?
- Date: Mon, 07 Jun 2010 21:45:57 +0200
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 gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]