GLib.Variant.prototype.dup_bytestring

function dup_bytestring(): [return_value: ByteArray, length: Number(gsize)] {
    // Gjs wrapper for g_variant_dup_bytestring()
}
  

Similar to GLib.Variant.prototype.get_bytestring except that instead of returning a constant string, the string is duplicated.

The return value must be freed using GLib.free.

Since 2.26

return_value

a newly allocated string

length

a pointer to a #gsize, to store the length (not including the nul terminator)