src/keyvalue.c
//================================================================
/*! clear all

  @param  kvh		pointer to key-value handle.
*/
clear all
@param  kvh           pointer to key-value handle.
clear all @param kvh pointer to key - value handle .
void mrbc_kv_clear(mrbc_kv_handle *kvh)
{
  mrbc_kv *p1 = kvh->data;
  const mrbc_kv *p2 = p1 + kvh->n_stored;
  while( p1 < p2 ) {
    mrbc_dec_ref_counter(&p1->value);
    p1++;
  }
  kvh->n_stored = 0;
}
void mrbc_kv_clear ( mrbc_kv_handle * kvh ) { mrbc_kv * p1 = kvh -> data ; const mrbc_kv * p2 = p1 + kvh -> n_stored ; while ( p1 < p2 ) { mrbc_dec_ref_counter ( & p1 -> value ) ; p1 ++ ; } kvh -> n_stored = 0 ; }
clear all
@param  kvh           pointer to key-value handle.
clear all @param kvh pointer to key - value handle .