Variant.getDataAsBytes

Returns a pointer to the serialised form of a #GVariant instance. The semantics of this function are exactly the same as g_variant_get_data(), except that the returned #GBytes holds a reference to the variant data.

Return: A new #GBytes representing the variant data

class Variant
getDataAsBytes
()

Meta

Since

2.36