src/contrib/subversion/subversion/libsvn_fs_x/temp_serializer.c
/* Utility function to serialize string S in the given serialization CONTEXT.
 */
Utility function to serialize string S in the given serialization CONTEXT.
Utility function to serialize string S in the given serialization CONTEXT .
static void
serialize_svn_string(svn_temp_serializer__context_t *context,
                     const svn_string_t * const *s)
{
  const svn_string_t *string = *s;
  if (string == NULL)
    return;
  svn_temp_serializer__push(context,
                            (const void * const *)s,
                            sizeof(*string));
  svn_temp_serializer__add_leaf(context,
                                (const void * const *)&string->data,
                                string->len + 1);
  svn_temp_serializer__pop(context);
}
static void serialize_svn_string ( svn_temp_serializer__context_t * context , const svn_string_t * const * s ) { const svn_string_t * string = * s ; if ( string == NULL ) return ; svn_temp_serializer__push ( context , ( const void * const * ) s , sizeof ( * string ) ) ; svn_temp_serializer__add_leaf ( context , ( const void * const * ) & string -> data , string -> len + 1 ) ; svn_temp_serializer__pop ( context ) ; }
Utility function to serialize string S in the given serialization CONTEXT.
Utility function to serialize string S in the given serialization CONTEXT .
/* Nothing to do for NULL string references. */ /* the "string" content may actually be arbitrary binary data.
   * Thus, we cannot use svn_temp_serializer__add_string. */ /* back to the caller's nesting level */