FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/index.c
/* Implements svn_cache__partial_getter_func_t for P2L index pages, copying
 * the entry for the apr_off_t at BATON into *OUT.  *OUT will be NULL if
 * there is no matching entry in the index page at DATA.
 */
Implements svn_cache__partial_getter_func_t for P2L index pages, copying
the entry for the apr_off_t at BATON into *OUT.  *OUT will be NULL if
there is no matching entry in the index page at DATA.
Implements svn_cache__partial_getter_func_t for P2L index pages copying the entry for the apr_off_t at BATON into * OUT . * OUT will be NULL if there is no matching entry in the index page at DATA .
static svn_error_t *
p2l_entry_lookup_func(void **out,
                      const void *data,
                      apr_size_t data_len,
                      void *baton,
                      apr_pool_t *result_pool)
{
  svn_fs_fs__p2l_entry_t *entry
    = get_p2l_entry_from_cached_page(data, *(apr_off_t *)baton, result_pool,
                                     result_pool);
  *out = entry && entry->offset == *(apr_off_t *)baton
       ? apr_pmemdup(result_pool, entry, sizeof(*entry))
       : NULL;
  return SVN_NO_ERROR;
}
static svn_error_t * p2l_entry_lookup_func ( void * * out , const void * data , apr_size_t data_len , void * baton , apr_pool_t * result_pool ) { svn_fs_fs__p2l_entry_t * entry = get_p2l_entry_from_cached_page ( data , * ( apr_off_t * ) baton , result_pool , result_pool ) ; * out = entry && entry -> offset == * ( apr_off_t * ) baton ? apr_pmemdup ( result_pool , entry , sizeof ( * entry ) ) : NULL ; return SVN_NO_ERROR ; }
Implements svn_cache__partial_getter_func_t for P2L index pages, copying
 the entry for the apr_off_t at BATON into *OUT.
Implements svn_cache__partial_getter_func_t for P2L index pages copying the entry for the apr_off_t at BATON into * OUT .