[ 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.
this | |
cancellable |
a Cancellable, or null |
how many bytes the this would use when saved, or -1 on error. |