LMMS
Loading...
Searching...
No Matches
hash.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "zix/common.h"

Go to the source code of this file.

Functions

Hash
ZIX_API ZixHashzix_hash_new (ZixHashFunc hash_func, ZixEqualFunc equal_func, size_t value_size)
ZIX_API void zix_hash_free (ZixHash *hash)
ZIX_PURE_API size_t zix_hash_size (const ZixHash *hash)
ZIX_API ZixStatus zix_hash_remove (ZixHash *hash, const void *value)
ZIX_API voidzix_hash_find (const ZixHash *hash, const void *value)
ZIX_API void zix_hash_foreach (ZixHash *hash, ZixHashVisitFunc f, void *user_data)

Hash

typedef struct ZixHashImpl ZixHash
typedef uint32_t(* ZixHashFunc) (const void *value)
typedef void(* ZixHashVisitFunc) (void *value, void *user_data)
ZIX_API ZixStatus zix_hash_insert (ZixHash *hash, const void *value, const void **inserted)