Lines Matching refs:capacity
81 capacity = inCapacity;
194 OSDictionary *OSDictionary::withCapacity(unsigned int capacity)
198 if (me && !me->initWithCapacity(capacity)) {
209 unsigned int capacity)
213 if (me && !me->initWithObjects(objects, keys, count, capacity)) {
224 unsigned int capacity)
228 if (me && !me->initWithObjects(objects, keys, count, capacity)) {
237 unsigned int capacity)
241 if (me && !me->initWithDictionary(dict, capacity)) {
254 kfree(dictionary, capacity * sizeof(dictEntry));
255 ACCUMSIZE( -(capacity * sizeof(dictEntry)) );
262 unsigned int OSDictionary::getCapacity() const { return capacity; }
281 if (newCapacity <= capacity)
282 return capacity;
291 oldSize = sizeof(dictEntry) * capacity;
294 bzero(&newDict[capacity], newSize - oldSize);
300 capacity = newCapacity;
303 return capacity;
347 // add new key, possibly extending our capacity
348 if (count >= capacity && count >= ensureCapacity(count+1))