calculate_size_sync


Description:

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

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

It's using write_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.




2022 vala-language.org