subversion/libsvn_repos/config_pool.c
/* Return a memory buffer structure allocated in POOL and containing the
 * data from CHECKSUM.
 */
Return a memory buffer structure allocated in POOL and containing the
data from CHECKSUM.
Return a memory buffer structure allocated in POOL and containing the data from CHECKSUM .
static svn_membuf_t *
checksum_as_key(svn_checksum_t *checksum,
                apr_pool_t *pool)
{
  svn_membuf_t *result = apr_pcalloc(pool, sizeof(*result));
  apr_size_t size = svn_checksum_size(checksum);
  svn_membuf__create(result, size, pool);
  result->size = size; 
  memcpy(result->data, checksum->digest, size);
  return result;
}
static svn_membuf_t * checksum_as_key ( svn_checksum_t * checksum , apr_pool_t * pool ) { svn_membuf_t * result = apr_pcalloc ( pool , sizeof ( * result ) ) ; apr_size_t size = svn_checksum_size ( checksum ) ; svn_membuf__create ( result , size , pool ) ; result -> size = size ; memcpy ( result -> data , checksum -> digest , size ) ; return result ; }
Return a memory buffer structure allocated in POOL and containing the
 data from CHECKSUM.
Return a memory buffer structure allocated in POOL and containing the data from CHECKSUM .
/* exact length is required! */