DBusMessage.newFromBlob

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 ubyte[]

A blob representing a binary D-Bus message.

capabilities gio.types.DBusCapabilityFlags

A #GDBusCapabilityFlags describing what protocol features are supported.

Return Value

Type: gio.dbus_message.DBusMessage

A new #GDBusMessage or null if error is set. Free with gobject.object.ObjectG.unref.