DBusMessage.bytesNeeded

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

class DBusMessage
static
bytesNeeded
(
char[] blob
)

Parameters

blob char[]

A blob represent a binary D-Bus message.

Return Value

Type: gssize

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

GException on failure.

Meta