depe/subversion/subversion/libsvn_fs_fs/fs_fs.c
/* Handler for the write method of the representation writable stream.
   BATON is a rep_write_baton, DATA is the data to write, and *LEN is
   the length of this data. */
Handler for the write method of the representation writable stream.
BATON is a rep_write_baton, DATA is the data to write, and *LEN is
the length of this data.
Handler for the write method of the representation writable stream . BATON is a rep_write_baton DATA is the data to write and * LEN is the length of this data .
static svn_error_t *
rep_write_contents(void *baton,
                   const char *data,
                   apr_size_t *len)
{
  struct rep_write_baton *b = baton;
  SVN_ERR(svn_checksum_update(b->md5_checksum_ctx, data, *len));
  SVN_ERR(svn_checksum_update(b->sha1_checksum_ctx, data, *len));
  b->rep_size += *len;
  if (b->delta_stream)
    return svn_stream_write(b->delta_stream, data, len);
  else
    return svn_stream_write(b->rep_stream, data, len);
}
static svn_error_t * rep_write_contents ( void * baton , const char * data , apr_size_t * len ) { struct rep_write_baton * b = baton ; SVN_ERR ( svn_checksum_update ( b -> md5_checksum_ctx , data , * len ) ) ; SVN_ERR ( svn_checksum_update ( b -> sha1_checksum_ctx , data , * len ) ) ; b -> rep_size += * len ; if ( b -> delta_stream ) return svn_stream_write ( b -> delta_stream , data , len ) ; else return svn_stream_write ( b -> rep_stream , data , len ) ; }
Handler for the write method of the representation writable stream.
Handler for the write method of the representation writable stream .
/* If we are writing a delta, use that stream. */