11 #ifndef __DYNAMIC_ARRAY_H__
12 #define __DYNAMIC_ARRAY_H__
29 int Array_Create_(PDYNAMIC_ARRAY pArray,
size_t ItemSize,
size_t ItemCountMax);
30 void *
Array_Insert(PDYNAMIC_ARRAY pArray,
const void * NewItems,
size_t NewItemCount);
31 void *
Array_ItemAt(PDYNAMIC_ARRAY pArray,
size_t ItemIndex);
32 size_t Array_IndexOf(PDYNAMIC_ARRAY pArray,
const void * ArrayPtr);
35 #define Array_Create(pArray, type, ItemCountMax) Array_Create_(pArray, sizeof(type), ItemCountMax)
37 #endif // __DYNAMIC_ARRAY__
int Array_Create_(PDYNAMIC_ARRAY pArray, size_t ItemSize, size_t ItemCountMax)
Definition: DynamicArray.cpp:51
size_t ItemSize
Definition: DynamicArray.h:22
size_t Array_IndexOf(PDYNAMIC_ARRAY pArray, const void *ArrayPtr)
Definition: DynamicArray.cpp:87
Definition: DynamicArray.h:17
struct _DYNAMIC_ARRAY * PDYNAMIC_ARRAY
void Array_Free(PDYNAMIC_ARRAY pArray)
Definition: DynamicArray.cpp:95
void * Array_Insert(PDYNAMIC_ARRAY pArray, const void *NewItems, size_t NewItemCount)
Definition: DynamicArray.cpp:63
char * ItemArray
Definition: DynamicArray.h:19
void * Array_ItemAt(PDYNAMIC_ARRAY pArray, size_t ItemIndex)
Definition: DynamicArray.cpp:81
struct _DYNAMIC_ARRAY DYNAMIC_ARRAY
size_t ItemCountMax
Definition: DynamicArray.h:20
size_t ItemCount
Definition: DynamicArray.h:21