2022-12-19 23:16:17 -07:00
|
|
|
#ifndef ARC_STD_ARRAY_H_
|
|
|
|
|
#define ARC_STD_ARRAY_H_
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2023-01-30 23:22:34 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-01-17 01:59:08 -07:00
|
|
|
/**
|
|
|
|
|
* @brief a type that holds an array of data and its size
|
|
|
|
|
*/
|
2022-12-19 23:16:17 -07:00
|
|
|
typedef struct ARC_Array {
|
|
|
|
|
uint32_t *size;
|
|
|
|
|
void *data;
|
|
|
|
|
} ARC_Array;
|
|
|
|
|
|
2023-01-30 23:22:34 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-12-19 23:16:17 -07:00
|
|
|
#endif //ARC_STD_ARRAY_H_
|