VariantG.getDataAsBytes

Returns a pointer to the serialized form of a #GVariant instance. The semantics of this function are exactly the same as glib.variant.VariantG.getData, except that the returned #GBytes holds a reference to the variant data.

class VariantG
getDataAsBytes
()

Return Value

Type: glib.bytes.Bytes

A new #GBytes representing the variant data