DBusMessage.bytesNeeded

ptrdiff_t bytesNeeded(ubyte[] blob)

Utility function to calculate how many bytes are needed to completely deserialize the D-Bus message stored at blob.

Parameters

blobA blob representing a binary D-Bus message.

Returns

Number of bytes needed or -1 if error is set (e.g. if

blob contains invalid data or not enough data is available to determine the size).

Throws

[ErrorWrap]