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.

class Variant
getDataAsBytes
()

Return Value

Type: Bytes

A new #GBytes representing the variant data

Meta

Since

2.36