Function ds_meta_space
Defined in File ds.h
Function Documentation
-
static inline size_t ds_meta_space(size_t max_elts)
Calculate how large the chunk of memory for the metadata for a data structure needs to be, given a max # of elements.
Used in conjunction with RCSW_NOALLOC_DATA and/or RCSW_NOALLOC_META for data structures requiring metadata.
You really shouldn’t use this function.
- Parameters:
max_elts – Max # elements the structure will manage.
- Returns:
Total # of bytes required.