svn_txdelta2

Function svn_txdelta2 

Source
pub unsafe extern "C" fn svn_txdelta2(
    stream: *mut *mut svn_txdelta_stream_t,
    source: *mut svn_stream_t,
    target: *mut svn_stream_t,
    calculate_checksum: svn_boolean_t,
    pool: *mut apr_pool_t,
)
Expand description

Set @a *stream to a pointer to a delta stream that will turn the byte string from @a source into the byte stream from @a target.

@a source and @a target are both readable generic streams. When we call svn_txdelta_next_window() on @a *stream, it will read from @a source and @a target to gather as much data as it needs. If @a calculate_checksum is set, you may call svn_txdelta_md5_digest() to get an MD5 checksum for @a target.

Do any necessary allocation in a sub-pool of @a pool.

@since New in 1.8.