GLib.Variant.prototype.get_data_as_bytes
function get_data_as_bytes(): ByteArray { // Gjs wrapper for g_variant_get_data_as_bytes() }
Returns a pointer to the serialised form of a GLib.Variant instance. The semantics of this function are exactly the same as GLib.Variant.prototype.get_data, except that the returned GLib.Bytes holds a reference to the variant data.
Since 2.36
- Returns
A new GLib.Bytes representing the variant data