30 lines
506 B
C
30 lines
506 B
C
/* date = August 3rd 2025 5:01 pm */
|
|
|
|
#ifndef FCODER_STRING_POOL_H
|
|
#define FCODER_STRING_POOL_H
|
|
|
|
#define STRING_POOL_ALLOC_SIZE 64
|
|
|
|
struct String_Pool_Free_List
|
|
{
|
|
i64 size;
|
|
String_Pool_Free_List* next;
|
|
String_Pool_Free_List* prev;
|
|
};
|
|
|
|
struct String_Pool_Buffer
|
|
{
|
|
String_Const_u8 data;
|
|
String_Pool_Buffer* next;
|
|
};
|
|
|
|
struct String_Pool
|
|
{
|
|
String_Pool_Buffer* buffers;
|
|
String_Pool_Free_List free_first;
|
|
String_Pool_Free_List free_last;
|
|
u64 last_buffer_size;
|
|
};
|
|
|
|
#endif //FCODER_STRING_POOL_H
|