Fumofumotris/source/fumoengine/include/dictionary.h
2024-05-15 17:10:47 -05:00

21 lines
426 B
C

#pragma once
#include "fumocommon.h"
struct Dictionary {
usize value_size;
usize value_offset;
usize bkt_size;
usize filled;
usize capacity;
void *bkts;
};
bool CreateDictionary(struct Dictionary *dict, usize value_size);
void FreeDictionary(struct Dictionary *dict);
void *DictionaryFind(struct Dictionary *dict, u32 key);
void *DictionarySet(struct Dictionary *dict, u32 key, void *value_ptr);