FreeBSD/contrib/subversion/subversion/libsvn_fs_x/index.c
/* Encode VALUE as 7/8b into P and return the number of bytes written.
 * This will be used when _writing_ packed data.  packed_stream_* is for
 * read operations only.
 */
Encode VALUE as 7/8b into P and return the number of bytes written.
This will be used when _writing_ packed data.  packed_stream_* is for
read operations only.
Encode VALUE as 7 / 8b into P and return the number of bytes written . This will be used when _writing_ packed data . packed_stream_ * is for read operations only .
static apr_size_t
encode_uint(unsigned char *p, apr_uint64_t value)
{
  unsigned char *start = p;
  while (value >= 0x80)
    {
      *p = (unsigned char)((value % 0x80) + 0x80);
      value /= 0x80;
      ++p;
    }
  *p = (unsigned char)(value % 0x80);
  return (p - start) + 1;
}
static apr_size_t encode_uint ( unsigned char * p , apr_uint64_t value ) { unsigned char * start = p ; while ( value >= 0x80 ) { * p = ( unsigned char ) ( ( value % 0x80 ) + 0x80 ) ; value /= 0x80 ; ++ p ; } * p = ( unsigned char ) ( value % 0x80 ) ; return ( p - start ) + 1 ; }
Encode VALUE as 7/8b into P and return the number of bytes written.
Encode VALUE as 7 / 8b into P and return the number of bytes written .