calculate_decoded_size_sync


Description:

[ Version ( since = "3.24" ) ]
public size_t calculate_decoded_size_sync (Cancellable? cancellable = null) throws Error

Calculates decoded size of the this by saving it to a null-stream and returns how many bytes had been written.

It's using decode_to_stream_sync internally.

Parameters:

this

a DataWrapper

cancellable

a Cancellable, or null

Returns:

how many bytes the this would use when saved, or -1 on error.