pub unsafe extern "C" fn svn_stream_copy3(
from: *mut svn_stream_t,
to: *mut svn_stream_t,
cancel_func: svn_cancel_func_t,
cancel_baton: *mut c_void,
pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Read the contents of the readable stream @a from and write them to the writable stream @a to calling @a cancel_func before copying each chunk.
@a cancel_func may be @c NULL.
@note both @a from and @a to will be closed upon successful completion of the copy (but an error may still be returned, based on trying to close the two streams). If the closure is not desired, then you can use svn_stream_disown() to protect either or both of the streams from being closed.
@since New in 1.6.