56
56
/* A search iterator state */
57
57
typedef uint32_t HASH_SEARCH_STATE;
59
#define hash_init(A,B,C,D,E,F,G,H) _hash_init(A,0,B,C,D,E,F,G,H)
60
#define hash_init2(A,B,C,D,E,F,G,H,I) _hash_init(A,B,C,D,E,F,G,H,I)
61
59
bool _hash_init(HASH *hash, uint32_t growth_size,
62
60
const CHARSET_INFO * const charset,
63
61
uint32_t default_array_elements, size_t key_offset,
64
62
size_t key_length, hash_get_key get_key,
65
63
void (*free_element)(void*), uint32_t flags);
64
#define hash_init(A,B,C,D,E,F,G,H) _hash_init(A,0,B,C,D,E,F,G,H)
65
#define hash_init2(A,B,C,D,E,F,G,H,I) _hash_init(A,B,C,D,E,F,G,H,I)
66
66
void hash_free(HASH *tree);
67
67
void my_hash_reset(HASH *hash);
68
68
unsigned char *hash_element(HASH *hash,uint32_t idx);