|
libfossil
|
Generic list container type. More...
#include "util.h"
Data Fields | |
| fsl_size_t | capacity |
| Number of slots allocated in this->list. | |
| void ** | list |
| Array of entries. | |
| fsl_size_t | used |
| Number of "used" entries in the list. | |
Generic list container type.
This is used heavily by the Fossil API for storing arrays of dynamically-allocated objects. It is not useful as a non-pointer-array replacement.
It is up to the APIs using this type to manage the entry count member and use fsl_list_reserve() to manage the "capacity" member.
| fsl_size_t fsl_list::capacity |
Number of slots allocated in this->list.
Use fsl_list_reserve() to modify this. Doing so might move the this->list pointer but the values it points to will stay stable.
| void** fsl_list::list |
| fsl_size_t fsl_list::used |