FreeBSD/contrib/subversion/subversion/libsvn_subr/cache-membuffer.c
/* Initialize the content hash member of TAG.
 */
Initialize the content hash member of TAG.
Initialize the content hash member of TAG .
static svn_error_t* store_content_part(entry_tag_t *tag,
                                       const void *data,
                                       apr_size_t size,
                                       apr_pool_t *pool)
{
  svn_checksum_t *checksum;
  SVN_ERR(svn_checksum(&checksum,
                       svn_checksum_md5,
                       data,
                       size,
                       pool));
  memcpy(tag->content_hash, checksum->digest, sizeof(tag->content_hash));
  return SVN_NO_ERROR;
}
static svn_error_t * store_content_part ( entry_tag_t * tag , const void * data , apr_size_t size , apr_pool_t * pool ) { svn_checksum_t * checksum ; SVN_ERR ( svn_checksum ( & checksum , svn_checksum_md5 , data , size , pool ) ) ; memcpy ( tag -> content_hash , checksum -> digest , sizeof ( tag -> content_hash ) ) ; return SVN_NO_ERROR ; }
Initialize the content hash member of TAG.
Initialize the content hash member of TAG .