Lines Matching defs:capacity
595 _prop_dictionary_alloc(unsigned int capacity)
600 if (capacity != 0) {
601 array = _PROP_CALLOC(capacity * sizeof(*array), M_PROP_DICT);
613 pd->pd_capacity = capacity;
625 _prop_dictionary_expand(prop_dictionary_t pd, unsigned int capacity)
635 array = _PROP_CALLOC(capacity * sizeof(*array), M_PROP_DICT);
641 pd->pd_capacity = capacity;
724 * Create a dictionary with the capacity to store N objects.
727 prop_dictionary_create_with_capacity(unsigned int capacity)
730 return (_prop_dictionary_alloc(capacity));
735 * Copy a dictionary. The new dictionary has an initial capacity equal
827 * Ensure that the dictionary has the capacity to store the specified
832 prop_dictionary_ensure_capacity(prop_dictionary_t pd, unsigned int capacity)
840 if (capacity > pd->pd_capacity)
841 rv = _prop_dictionary_expand(pd, capacity);