Fumofumotris/source/fumoengine/include/vector.h

19 lines
312 B
C
Raw Normal View History

2024-05-07 22:10:15 +00:00
#include "fumocommon.h"
struct Vector {
2024-05-15 22:10:47 +00:00
usize value_size;
2024-05-07 22:10:15 +00:00
usize len;
usize capacity;
void *array;
};
2024-05-15 22:10:47 +00:00
bool CreateVector(struct Vector *vec, usize value_size);
2024-05-07 22:10:15 +00:00
void FreeVector(struct Vector *vec);
2024-05-15 22:10:47 +00:00
void *VectorGet(struct Vector *vec, usize i);
2024-05-07 22:10:15 +00:00
2024-05-15 22:10:47 +00:00
bool VectorAdd(struct Vector *vec, void *item);