52 static inline struct CNResource *
63 static inline uint64_t
struct CNArrayElement * topElement
Definition: CNArray.h:26
void CNDestroyArray(struct CNArray *dst)
Release all resource the array.
Array of pointers.
Definition: CNArray.h:18
void * CNPointerInArray(const struct CNArray *src, uint64_t index)
Get element in the array.
Forward declaration of data types.
void * CNSetPointerToArray(struct CNArray *dst, uint64_t index, void *src)
Set pointer to the array at the given index.
static uint64_t CNCountOfArray(const struct CNArray *src)
Get the count of elements in the array.
Definition: CNArray.h:64
CNBoolean CNVisitElementOfArray(const struct CNArray *src, CNVisitElementOfArrayFuncRef visitfunc, void *info)
Visit all elements in the array.
static struct CNResource * CNResourceOfArray(const struct CNArray *src)
Get resource of array.
Definition: CNArray.h:53
void CNInitArray(struct CNArray *dst, struct CNResource *resource)
Initialize array.
CNBoolean(* CNVisitElementOfArrayFuncRef)(uint64_t index, void *src, void *info)
Definition: CNArray.h:30
static void CNAddPointerToArray(struct CNArray *dst, void *src)
Add pointer as the last element of the array.
Definition: CNArray.h:85
struct CNResource * resource
Definition: CNArray.h:20
Define CNArrayElement data structure.
Definition: CNArrayElement.h:23
unsigned int CNBoolean
Boolean type.
Definition: CNType.h:14
uint64_t depth
Definition: CNArray.h:22
uint64_t currentNum
Definition: CNArray.h:24