[gobject.object.ObjectWrap.unref].
DBusMessage.newFromBlob
gio.dbus_message.DBusMessage newFromBlob(ubyte[] blob, gio.types.DBusCapabilityFlags capabilities)Creates a new #GDBusMessage from the data stored at blob. The byte order that the message was in can be retrieved using [gio.dbus_message.DBusMessage.getByteOrder].
If the blob cannot be parsed, contains invalid fields, or contains invalid headers, [gio.types.IOErrorEnum.InvalidArgument] will be returned.
Parameters
blob | A blob representing a binary D-Bus message. |
capabilities | A #GDBusCapabilityFlags describing what protocol features are supported. |
Returns
A new #GDBusMessage or null if error is set. Free with
Throws
[ErrorWrap]