pub unsafe extern "C" fn svn_fs_try_process_file_contents(
success: *mut svn_boolean_t,
root: *mut svn_fs_root_t,
path: *const c_char,
processor: svn_fs_process_contents_func_t,
baton: *mut c_void,
pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Efficiently deliver the contents of the file @a path in @a root via @a processor (with @a baton), setting @a *success to @c TRUE upon doing so. Use @a pool for allocations.
This function is intended to support zero copy data processing. It may not be implemented for all data backends or not be applicable for certain content. In those cases, @a *success will always be @c FALSE. Also, this is a best-effort function which means that there is no guarantee that @a processor gets called at all.
@note @a processor is expected to be a relatively simple function with a runtime of O(content size) or less.
@since New in 1.8.