FreeBSD/contrib/subversion/subversion/libsvn_subr/packed_data.c
/* Recursively write the structure (config parameters, sub-streams, data
 * sizes) of the STREAM and all its siblings to the TREE_STRUCT buffer.
 */
Recursively write the structure (config parameters, sub-streams, data
sizes) of the STREAM and all its siblings to the TREE_STRUCT buffer.
Recursively write the structure ( config parameters sub - streams data sizes ) of the STREAM and all its siblings to the TREE_STRUCT buffer .
static void
write_int_stream_structure(svn_stringbuf_t* tree_struct,
                           svn_packed__int_stream_t* stream)
{
  while (stream)
    {
      packed_int_private_t *private_data = stream->private_data;
      write_packed_uint(tree_struct, (private_data->substream_count << 2)
                                   + (private_data->diff ? 1 : 0)
                                   + (private_data->is_signed ? 2 : 0));
      svn_packed__data_flush_buffer(stream);
      write_packed_uint(tree_struct, private_data->item_count);
      write_packed_uint(tree_struct, private_data->packed
                                   ? private_data->packed->len
                                   : 0);
      write_int_stream_structure(tree_struct, private_data->first_substream);
      stream = private_data->is_last ? NULL : private_data->next;
    }
}
static void write_int_stream_structure ( svn_stringbuf_t * tree_struct , svn_packed__int_stream_t * stream ) { while ( stream ) { packed_int_private_t * private_data = stream -> private_data ; write_packed_uint ( tree_struct , ( private_data -> substream_count << 2 ) + ( private_data -> diff ? 1 : 0 ) + ( private_data -> is_signed ? 2 : 0 ) ) ; svn_packed__data_flush_buffer ( stream ) ; write_packed_uint ( tree_struct , private_data -> item_count ) ; write_packed_uint ( tree_struct , private_data -> packed ? private_data -> packed -> len : 0 ) ; write_int_stream_structure ( tree_struct , private_data -> first_substream ) ; stream = private_data -> is_last ? NULL : private_data -> next ; } }
Recursively write the structure (config parameters, sub-streams, data
 sizes) of the STREAM and all its siblings to the TREE_STRUCT buffer.
Recursively write the structure ( config parameters sub - streams data sizes ) of the STREAM and all its siblings to the TREE_STRUCT buffer .
/* store config parameters and number of sub-streams in 1 number */ /* store item count and length their of packed representation */ /* append all sub-stream structures */ /* continue with next sibling */