Variant.getDataAsBytes
glib.bytes.Bytes getDataAsBytes()Returns a pointer to the serialized form of a #GVariant instance. The semantics of this function are exactly the same as [glib.variant.Variant.getData], except that the returned #GBytes holds a reference to the variant data.
Returns
A new #GBytes representing the variant data