24 #include <drizzled/dynamic_array.h>
32 #define HASH_OVERHEAD (sizeof(char*)*2)
37 typedef unsigned char *(*hash_get_key)(
const unsigned char *,
size_t*,bool);
38 typedef void (*hash_free_key)(
void *);
55 size_t key_offset,key_length;
67 typedef uint32_t HASH_SEARCH_STATE;
71 uint32_t size,
size_t key_offset,
size_t key_length,
73 hash_free_key free_element, uint32_t flags);
74 #define hash_init(A,B,C,D,E,F,G,H) _hash_init(A,0,B,C,D,E,F,G,H)
75 void hash_free(
HASH *tree);
76 unsigned char *hash_search(
const HASH *info,
const unsigned char *key,
78 unsigned char *hash_first(
const HASH *info,
const unsigned char *key,
size_t length, HASH_SEARCH_STATE *state);
79 bool my_hash_insert(
HASH *info,
const unsigned char *data);
80 bool hash_delete(
HASH *hash,
unsigned char *record);
TODO: Rename this file - func.h is stupid.