FreeBSD/contrib/subversion/subversion/libsvn_subr/packed_data.c
/* Return the total size of all packed data in STREAM, its siblings and
 * all sub-streams.  To get an accurate value, flush all buffers prior to
 * calling this function.
 */
Return the total size of all packed data in STREAM, its siblings and
all sub-streams.  To get an accurate value, flush all buffers prior to
calling this function.
Return the total size of all packed data in STREAM its siblings and all sub - streams . To get an accurate value flush all buffers prior to calling this function .
static apr_size_t
packed_int_stream_length(svn_packed__int_stream_t *stream)
{
  packed_int_private_t *private_data = stream->private_data;
  apr_size_t result = private_data->packed ? private_data->packed->len : 0;
  stream = private_data->first_substream;
  while (stream)
    {
      private_data = stream->private_data;
      result += packed_int_stream_length(stream);
      stream = private_data->is_last ? NULL : private_data->next;
    }
  return result;
}
static apr_size_t packed_int_stream_length ( svn_packed__int_stream_t * stream ) { packed_int_private_t * private_data = stream -> private_data ; apr_size_t result = private_data -> packed ? private_data -> packed -> len : 0 ; stream = private_data -> first_substream ; while ( stream ) { private_data = stream -> private_data ; result += packed_int_stream_length ( stream ) ; stream = private_data -> is_last ? NULL : private_data -> next ; } return result ; }
Return the total size of all packed data in STREAM, its siblings and
 all sub-streams.
Return the total size of all packed data in STREAM its siblings and all sub - streams .