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. Since 2.36

class Variant
getDataAsBytes
()

Return Value

Type: Bytes

A new GBytes representing the variant data. [transfer full]

Meta