34 #ifndef GRPC_INTERNAL_CORE_STATISTICS_HASH_TABLE_H
35 #define GRPC_INTERNAL_CORE_STATISTICS_HASH_TABLE_H
39 #include <grpc/support/port_platform.h>
67 typedef enum census_ht_key_type {
74 census_ht_key_type key_type;
76 gpr_int32 num_buckets;
79 gpr_uint64 (*hash)(
const void*);
82 int (*compare_keys)(
const void* k1,
const void* k2);
84 void (*delete_data)(
void*);
87 void (*delete_key)(
void*);
120 size_t census_ht_get_size(
const census_ht* ht);
124 typedef void (*census_ht_itr_cb)(
census_ht_key key,
const void* val_ptr,
129 gpr_uint64 census_ht_for_all(
const census_ht* ht, census_ht_itr_cb);
Definition: hash_table.h:109
Definition: hash_table.h:72
Definition: hash_table.c:62
Definition: hash_table.h:62