Variant.getDataAsBytes

Returns a pointer to the serialised form of a glib.Variant instance. The semantics of this function are exactly the same as Variant.getData, except that the returned glib.Bytes holds a reference to the variant data.

class Variant
getDataAsBytes
()

Return Value

Type: Bytes

A new glib.Bytes representing the variant data

Meta

Since

2.36