FreeBSD/contrib/subversion/subversion/libsvn_subr/cache-membuffer.c
/* standard serialization function for svn_stringbuf_t items.
 * Implements svn_cache__serialize_func_t.
 */
standard serialization function for svn_stringbuf_t items.
standard serialization function for svn_stringbuf_t items .
static svn_error_t *
serialize_svn_stringbuf(void **buffer,
                        apr_size_t *buffer_size,
                        void *item,
                        apr_pool_t *result_pool)
{
  svn_stringbuf_t *value_str = item;
  *buffer = value_str->data;
  *buffer_size = value_str->len + 1;
  return SVN_NO_ERROR;
}
static svn_error_t * serialize_svn_stringbuf ( void * * buffer , apr_size_t * buffer_size , void * item , apr_pool_t * result_pool ) { svn_stringbuf_t * value_str = item ; * buffer = value_str -> data ; * buffer_size = value_str -> len + 1 ; return SVN_NO_ERROR ; }
standard serialization function for svn_stringbuf_t items.
standard serialization function for svn_stringbuf_t items .