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

19 lines
312 B
C

#include "fumocommon.h"
struct Vector {
usize value_size;
usize len;
usize capacity;
void *array;
};
bool CreateVector(struct Vector *vec, usize value_size);
void FreeVector(struct Vector *vec);
void *VectorGet(struct Vector *vec, usize i);
bool VectorAdd(struct Vector *vec, void *item);