FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/index.c
/* Implement svn_cache__partial_getter_func_t: extract the p2l page info
 * requested by BATON and return it in BATON.
 */
Implement svn_cache__partial_getter_func_t: extract the p2l page info
requested by BATON and return it in BATON.
Implement svn_cache__partial_getter_func_t : extract the p2l page info requested by BATON and return it in BATON .
static svn_error_t *
p2l_page_info_func(void **out,
                   const void *data,
                   apr_size_t data_len,
                   void *baton,
                   apr_pool_t *result_pool)
{
  const p2l_header_t *header = data;
  const apr_off_t *offsets
    = svn_temp_deserializer__ptr(header,
                                 (const void *const *)&header->offsets);
  p2l_page_info_copy(baton, header, offsets);
  return SVN_NO_ERROR;
}
static svn_error_t * p2l_page_info_func ( void * * out , const void * data , apr_size_t data_len , void * baton , apr_pool_t * result_pool ) { const p2l_header_t * header = data ; const apr_off_t * offsets = svn_temp_deserializer__ptr ( header , ( const void * const * ) & header -> offsets ) ; p2l_page_info_copy ( baton , header , offsets ) ; return SVN_NO_ERROR ; }
Implement svn_cache__partial_getter_func_t: extract the p2l page info
 requested by BATON and return it in BATON.
Implement svn_cache__partial_getter_func_t : extract the p2l page info requested by BATON and return it in BATON .
/* all the pointers to cached data we need */ /* copy data from cache to BATON */