Gio.DBusMessage.prototype.to_blob

function to_blob(capabilities: Gio.DBusCapabilityFlags): [return_value: ByteArray, out_size: Number(gsize)] {
    // Gjs wrapper for g_dbus_message_to_blob()
}
  

Serializes message to a blob. The byte order returned by Gio.DBusMessage.prototype.get_byte_order will be used.

Since 2.26

capabilities

A Gio.DBusCapabilityFlags describing what protocol features are supported.

return_value

A pointer to a valid binary D-Bus message of out_size bytes generated by message or null if @error is set. Free with GLib.free.

out_size

Return location for size of generated blob.