FreeBSD/contrib/subversion/subversion/libsvn_subr/packed_data.c
/* Write the 7b/8b representation of VALUE into BUFFER.  BUFFER must
 * provide at least 10 bytes space.
 * Returns the first position behind the written data.
 */
Write the 7b/8b representation of VALUE into BUFFER.  BUFFER must
provide at least 10 bytes space.
Returns the first position behind the written data.
Write the 7b / 8b representation of VALUE into BUFFER . BUFFER must provide at least 10 bytes space . Returns the first position behind the written data .
static unsigned char *
write_packed_uint_body(unsigned char *buffer, apr_uint64_t value)
{
  while (value >= 0x80)
    {
      *(buffer++) = (unsigned char)((value % 0x80) + 0x80);
      value /= 0x80;
    }
  *(buffer++) = (unsigned char)value;
  return buffer;
}
static unsigned char * write_packed_uint_body ( unsigned char * buffer , apr_uint64_t value ) { while ( value >= 0x80 ) { * ( buffer ++ ) = ( unsigned char ) ( ( value % 0x80 ) + 0x80 ) ; value /= 0x80 ; } * ( buffer ++ ) = ( unsigned char ) value ; return buffer ; }
Write the 7b/8b representation of VALUE into BUFFER.
Write the 7b / 8b representation of VALUE into BUFFER .