FreeBSD/contrib/subversion/subversion/libsvn_subr/packed_data.c
/* Read the integer stream structure and recreate it in STREAM, including
 * sub-streams, from TREE_STRUCT.  FIRST_INT_STREAM is the integer stream
 * that would correspond to lengths_stream_index 0.
 */
Read the integer stream structure and recreate it in STREAM, including
sub-streams, from TREE_STRUCT.  FIRST_INT_STREAM is the integer stream
that would correspond to lengths_stream_index 0.
Read the integer stream structure and recreate it in STREAM including sub - streams from TREE_STRUCT . FIRST_INT_STREAM is the integer stream that would correspond to lengths_stream_index 0 .
static void
read_byte_stream_structure(svn_stringbuf_t *tree_struct,
                           svn_packed__byte_stream_t *stream,
                           svn_packed__int_stream_t *first_int_stream)
{
  apr_size_t lengths_stream_index;
  apr_size_t packed_size;
  apr_size_t i;
  (void) (apr_size_t)read_packed_uint(tree_struct); 
  lengths_stream_index = (apr_size_t)read_packed_uint(tree_struct);
  packed_size = (apr_size_t)read_packed_uint(tree_struct);
  svn_stringbuf_ensure(stream->packed, packed_size);
  stream->packed->len = packed_size;
  stream->lengths_stream_index = lengths_stream_index;
  stream->lengths_stream = first_int_stream;
  for (i = 0; i < lengths_stream_index; ++i)
    {
      packed_int_private_t *length_private
        = stream->lengths_stream->private_data;
      stream->lengths_stream = length_private->next;
    }
}
static void read_byte_stream_structure ( svn_stringbuf_t * tree_struct , svn_packed__byte_stream_t * stream , svn_packed__int_stream_t * first_int_stream ) { apr_size_t lengths_stream_index ; apr_size_t packed_size ; apr_size_t i ; ( void ) ( apr_size_t ) read_packed_uint ( tree_struct ) ; lengths_stream_index = ( apr_size_t ) read_packed_uint ( tree_struct ) ; packed_size = ( apr_size_t ) read_packed_uint ( tree_struct ) ; svn_stringbuf_ensure ( stream -> packed , packed_size ) ; stream -> packed -> len = packed_size ; stream -> lengths_stream_index = lengths_stream_index ; stream -> lengths_stream = first_int_stream ; for ( i = 0 ; i < lengths_stream_index ; ++ i ) { packed_int_private_t * length_private = stream -> lengths_stream -> private_data ; stream -> lengths_stream = length_private -> next ; } }
Read the integer stream structure and recreate it in STREAM, including
 sub-streams, from TREE_STRUCT.
Read the integer stream structure and recreate it in STREAM including sub - streams from TREE_STRUCT .
/* read parameters from the TREE_STRUCT buffer */ /* discard first uint */ /* allocate byte sequence buffer size */ /* navigate to the (already existing) lengths_stream */