FreeBSD/contrib/subversion/subversion/libsvn_delta/svndiff.c
/* Read and decode one integer from STREAM into *SIZE.
   Increment *BYTE_COUNTER by the number of chars we have read. */
Read and decode one integer from STREAM into *SIZE.
Increment *BYTE_COUNTER by the number of chars we have read.
Read and decode one integer from STREAM into * SIZE . Increment * BYTE_COUNTER by the number of chars we have read .
static svn_error_t *
read_one_size(apr_size_t *size,
              apr_size_t *byte_counter,
              svn_stream_t *stream)
{
  unsigned char c;
  *size = 0;
  while (1)
    {
      SVN_ERR(read_one_byte(&c, stream));
      ++*byte_counter;
      *size = (*size << 7) | (c & 0x7f);
      if (!(c & 0x80))
        break;
    }
  return SVN_NO_ERROR;
}
static svn_error_t * read_one_size ( apr_size_t * size , apr_size_t * byte_counter , svn_stream_t * stream ) { unsigned char c ; * size = 0 ; while ( 1 ) { SVN_ERR ( read_one_byte ( & c , stream ) ) ; ++ * byte_counter ; * size = ( * size << 7 ) | ( c & 0x7f ) ; if ( ! ( c & 0x80 ) ) break ; } return SVN_NO_ERROR ; }
Read and decode one integer from STREAM into *SIZE.
Read and decode one integer from STREAM into * SIZE .