FreeBSD/contrib/subversion/subversion/libsvn_fs_x/index.c
/* Implements svn_cache__partial_getter_func_t for P2L headers, setting *OUT
 * to the largest the first offset not covered by this P2L index.
 */
Implements svn_cache__partial_getter_func_t for P2L headers, setting *OUT
to the largest the first offset not covered by this P2L index.
Implements svn_cache__partial_getter_func_t for P2L headers setting * OUT to the largest the first offset not covered by this P2L index .
static svn_error_t *
p2l_get_max_offset_func(void **out,
                        const void *data,
                        apr_size_t data_len,
                        void *baton,
                        apr_pool_t *result_pool)
{
  const p2l_header_t *header = data;
  apr_off_t max_offset = header->file_size;
  *out = apr_pmemdup(result_pool, &max_offset, sizeof(max_offset));
  return SVN_NO_ERROR;
}
static svn_error_t * p2l_get_max_offset_func ( void * * out , const void * data , apr_size_t data_len , void * baton , apr_pool_t * result_pool ) { const p2l_header_t * header = data ; apr_off_t max_offset = header -> file_size ; * out = apr_pmemdup ( result_pool , & max_offset , sizeof ( max_offset ) ) ; return SVN_NO_ERROR ; }
Implements svn_cache__partial_getter_func_t for P2L headers, setting *OUT
 to the largest the first offset not covered by this P2L index.
Implements svn_cache__partial_getter_func_t for P2L headers setting * OUT to the largest the first offset not covered by this P2L index .