bytes_needed


Description:

public static ssize_t bytes_needed (uint8[] blob) throws Error

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

Parameters:

blob

A blob representing a binary D-Bus message.

blob_len

The length of blob (must be at least 16).

Returns:

Number of bytes needed or -1 if throws is set (e.g. if blob contains invalid data or not enough data is available to determine the size).