Kohi Game Engine
hashtable Struct Reference

Represents a simple hashtable. Members of this structure should not be modified outside the functions associated with it. More...

#include <hashtable.h>

Data Fields

u64 element_size
 
u32 element_count
 
b8 is_pointer_type
 
void * memory
 

Detailed Description

Represents a simple hashtable. Members of this structure should not be modified outside the functions associated with it.

For non-pointer types, table retains a copy of the value.For pointer types, make sure to use the _ptr setter and getter. Table does not take ownership of pointers or associated memory allocations, and should be managed externally.

Field Documentation

◆ element_count

u32 element_count

◆ element_size

u64 element_size

◆ is_pointer_type

b8 is_pointer_type

◆ memory

void* memory

The documentation for this struct was generated from the following file: