write_to_stream
Description:
Write all of a stream (until eos) into another stream, in a blocking fashion.
Parameters:
this |
source Stream object |
output_stream |
destination Stream object |
cancellable |
optional Cancellable object, or null |
Returns:
-1 on error, or the number of bytes successfully copied across streams. |