Function mpool_element_space
Defined in File mpool.h
Function Documentation
-
static inline size_t mpool_element_space(size_t max_elts, size_t elt_size)
Get # of bytes needed for space for the mpool data.
- Parameters:
max_elts – # of desired elements in pool.
elt_size – Size of elements in bytes.
- Returns:
The # of bytes the application would need to allocate.