FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/transaction.c
/* The handler for the write_container_rep stream.  BATON is a
   write_container_baton, DATA has the data to write and *LEN is the number
   of bytes to write. */
The handler for the write_container_rep stream.  BATON is a
write_container_baton, DATA has the data to write and *LEN is the number
of bytes to write.
The handler for the write_container_rep stream . BATON is a write_container_baton DATA has the data to write and * LEN is the number of bytes to write .
static svn_error_t *
write_container_handler(void *baton,
                        const char *data,
                        apr_size_t *len)
{
  struct write_container_baton *whb = baton;
  SVN_ERR(svn_checksum_update(whb->md5_ctx, data, *len));
  SVN_ERR(svn_checksum_update(whb->sha1_ctx, data, *len));
  SVN_ERR(svn_stream_write(whb->stream, data, len));
  whb->size += *len;
  return SVN_NO_ERROR;
}
static svn_error_t * write_container_handler ( void * baton , const char * data , apr_size_t * len ) { struct write_container_baton * whb = baton ; SVN_ERR ( svn_checksum_update ( whb -> md5_ctx , data , * len ) ) ; SVN_ERR ( svn_checksum_update ( whb -> sha1_ctx , data , * len ) ) ; SVN_ERR ( svn_stream_write ( whb -> stream , data , len ) ) ; whb -> size += * len ; return SVN_NO_ERROR ; }
The handler for the write_container_rep stream.
The handler for the write_container_rep stream .