diff options
| author | Syndamia <kamen@syndamia.com> | 2026-04-28 14:06:44 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-05-12 07:08:56 +0300 |
| commit | 0d249b1d47a7f84cfe5f09ad070d1affd26566da (patch) | |
| tree | f395f67eecb27daea3fc4a9ad8e59bf40f988984 /Array.h | |
| parent | 5c36b582ad60a569ed996fe188ed92ef6bd7fc5f (diff) | |
| download | foollib-0d249b1d47a7f84cfe5f09ad070d1affd26566da.tar foollib-0d249b1d47a7f84cfe5f09ad070d1affd26566da.tar.gz foollib-0d249b1d47a7f84cfe5f09ad070d1affd26566da.zip | |
feat!: Refactor using MemoryManager
The idea is to provide a universal memory management "API", through
which you allocate and deallocate. This allows our implementations (for
String and Vector) to be more generic.
It does also allow usage of different allocators depending on situation.
Diffstat (limited to 'Array.h')
| -rw-r--r-- | Array.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Array.h b/Array.h deleted file mode 100644 index 508a069..0000000 --- a/Array.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef _ARRAY -#define _ARRAY - -#include "Types.h" -#include "BumpAlloc.h" - -typedef void* Array; - -Array A_new(BumpArena b, usize element_size, usize length); -usize A_length(Array arr); -usize A_count(Array arr); -Result A_push(Array arr, void *value); -Result A_ppush(Array arr, void *value); -void* A_pop(Array arr); - -Array AG_new(usize element_size, usize length); - -#endif /* _ARRAY */ |
