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.

An error will be returned if blob contains invalid data, or if not enough data is available to determine the size.

Parameters:

blob

a blob representing a binary D-Bus message.

blob_len

the length of blob (must be at least 16 bytes)

Returns:

Number of bytes needed or `-1` if throws is set