DBusMessage.bytesNeeded

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

class DBusMessage
static
ptrdiff_t
bytesNeeded
(
char[] blob
)

Parameters

blob char[]

A blob representing a binary D-Bus message.

Return Value

Type: ptrdiff_t

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

Since

2.26