Lines Matching refs:capacity
274 _prop_array_alloc(unsigned int capacity)
279 if (capacity != 0) {
280 array = _PROP_CALLOC(capacity * sizeof(prop_object_t),
294 pa->pa_capacity = capacity;
306 _prop_array_expand(prop_array_t pa, unsigned int capacity)
316 array = _PROP_CALLOC(capacity * sizeof(*array), M_PROP_ARRAY);
322 pa->pa_capacity = capacity;
407 * Create an array with the capacity to store N objects.
410 prop_array_create_with_capacity(unsigned int capacity)
413 return (_prop_array_alloc(capacity));
418 * Copy an array. The new array has an initial capacity equal to
467 * Return the capacity of the array.
505 * Ensure that the array has the capacity to store the specified
510 prop_array_ensure_capacity(prop_array_t pa, unsigned int capacity)
518 if (capacity > pa->pa_capacity)
519 rv = _prop_array_expand(pa, capacity);
684 * to the end and growing the array's capacity, if necessary.