Struct darray_params
Defined in File darray.h
Struct Documentation
-
struct darray_params
Dynamic array (darray) initialization parameters.
Public Members
-
int (*cmpe)(const void *const e1, const void *const e2)
For comparing elements. Can be NULL. If NULL, sorting the darray is disabled.
-
void (*printe)(const void *e)
For printing an element. Can be NULL. If NULL, you can’t use darray_print().
-
dptr_t *elements
Pointer to application-allocated space for storing data managed by the darray. Ignored unless RCSW_NOALLOC_DATA is passed.
-
size_t elt_size
Size of elements in bytes.
-
int max_elts
Maximum number of elements allowed. -1 = no upper limit.
-
uint32_t flags
Configuration flags. See darray::flags for valid flags.
-
size_t init_size
Initial size of the array (must be < max_elts). Ignored if RCSW_NOALLOC_DATA is passed.
-
int (*cmpe)(const void *const e1, const void *const e2)