pub unsafe extern "C" fn svn_stream_lazyopen_create(
open_func: svn_stream_lazyopen_func_t,
open_baton: *mut c_void,
open_on_close: svn_boolean_t,
result_pool: *mut apr_pool_t,
) -> *mut svn_stream_t
Expand description
Return a generic stream which wraps another primary stream, delaying the “opening” of that stream until the first time the returned stream is accessed.
@a open_func and @a open_baton are a callback function/baton pair which will be invoked upon the first access of the returned stream (read, write, mark, seek, skip, or possibly close). The callback shall open the primary stream.
If the only “access” the returned stream gets is to close it then @a open_func will only be called if @a open_on_close is TRUE.
Allocate the returned stream in @a result_pool. Also arrange for @a result_pool to be passed as the @c result_pool parameter to @a open_func when it is called.
@since New in 1.8.