sm64coopdx/data/dynos_cmap.cpp.h
Isaac0-dev ec28e164db
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
optimised loading the mod cache (#1222)
* use hashmaps in mod cache

* use templates, suggested by peachy

an attempt to do what peachy is talking about

* that looks unusual

* change data to key parameter
2026-05-09 11:13:08 -04:00

26 lines
716 B
C

#ifndef DYNOS_CMAP_CPP_H
#define DYNOS_CMAP_CPP_H
#endif
#ifndef __cplusplus
void* hmap_create(bool useUnordered);
void* hmap_get(void* map, int64_t k);
void hmap_put(void* map, int64_t k, void* v);
void hmap_del(void* map, int64_t k);
void hmap_clear(void* map);
void hmap_destroy(void* map);
size_t hmap_len(void* map);
void* hmap_begin(void* map);
void* hmap_next(void* map);
void* hmap_data_create(void);
void* hmap_data_get(void* map, const char* key, size_t len);
void hmap_data_put(void* map, const char* key, size_t len, void* value);
void hmap_data_del(void* map, const char* key, size_t len);
void hmap_data_clear(void* map);
void hmap_data_destroy(void* map);
size_t hmap_data_len(void* map);
#endif