FreeBSD/contrib/subversion/subversion/libsvn_subr/packed_data.c
/* Append the 7b/8b encoded representation of VALUE to PACKED.
 */
Append the 7b/8b encoded representation of VALUE to PACKED.
Append the 7b / 8b encoded representation of VALUE to PACKED .
static void
write_packed_uint(svn_stringbuf_t* packed, apr_uint64_t value)
{
  if (value < 0x80)
    {
      svn_stringbuf_appendbyte(packed, (char)value);
    }
  else
    {
      unsigned char buffer[10];
      unsigned char *p = write_packed_uint_body(buffer, value);
      svn_stringbuf_appendbytes(packed, (char *)buffer, p - buffer);
    }
}
static void write_packed_uint ( svn_stringbuf_t * packed , apr_uint64_t value ) { if ( value < 0x80 ) { svn_stringbuf_appendbyte ( packed , ( char ) value ) ; } else { unsigned char buffer [ 10 ] ; unsigned char * p = write_packed_uint_body ( buffer , value ) ; svn_stringbuf_appendbytes ( packed , ( char * ) buffer , p - buffer ) ; } }
Append the 7b/8b encoded representation of VALUE to PACKED.
Append the 7b / 8b encoded representation of VALUE to PACKED .