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

blobA blob representing a binary D-Bus message.
capabilitiesA #GDBusCapabilityFlags describing what protocol features are supported.

Returns

A new #GDBusMessage or null if error is set. Free with

[gobject.object.ObjectWrap.unref].

Throws

[ErrorWrap]