-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhash_fixed.h
More file actions
23 lines (18 loc) · 812 Bytes
/
hash_fixed.h
File metadata and controls
23 lines (18 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __hash_fixed_h
#define __hash_fixed_h
#include "hash.h"
size_t hash_mem_size_fixed( size_t bkt // bucket number
, size_t n // items number
, size_t k // key size
, size_t v // val size
);
struct hash *hash_create_fixed( size_t size
, void *mem
, size_t keysize
, size_t valsize
, size_t nbuckets
, uint32_t (*hashfun)(void *)
, bool (*keycmp)(void *, void *)
, void (*keycopy)(void *, void *)
, void (*valcopy)(void *, void *) );
#endif