Begin refactor.
This commit is contained in:
@ -6,9 +6,24 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <dawn/dawn.h>
|
||||
#include "../libs.h"
|
||||
#include "array.h"
|
||||
|
||||
/** Custom Array Definition */
|
||||
typedef struct {
|
||||
/** The data storage */
|
||||
void *data;
|
||||
|
||||
/** Size of each element within the array */
|
||||
size_t size;
|
||||
|
||||
/** The count of elements currently in the array */
|
||||
int32_t length;
|
||||
|
||||
/** Total count of elements the array can hold */
|
||||
int32_t total;
|
||||
} dynarray_t;
|
||||
|
||||
/**
|
||||
* Create a dynamic array. Dynamic arrays are a more highlevel array style that
|
||||
* can offer great flexibility and ease-of-use, at the cost of memory, memory
|
||||
|
Reference in New Issue
Block a user