Searched refs:newCapacity (Results 1 - 14 of 14) sorted by relevance

/xnu-2422.115.4/libkern/c++/
H A DOSSerialize.cpp199 unsigned int OSSerialize::ensureCapacity(unsigned int newCapacity) argument
203 if (newCapacity <= capacity)
207 newCapacity = round_page_32(newCapacity);
213 newCapacity);
215 ACCUMSIZE(newCapacity);
223 bzero(&newData[capacity], newCapacity - capacity);
226 capacity = newCapacity;
H A DOSDictionary.cpp92 unsigned int newCapacity = theCount; local
101 newCapacity = theCapacity;
104 if (!initWithCapacity(newCapacity))
122 unsigned int newCapacity = theCount; local
131 newCapacity = theCapacity;
134 if (!initWithCapacity(newCapacity))
158 unsigned int newCapacity; local
163 newCapacity = dict->count;
169 newCapacity = theCapacity;
172 if (!initWithCapacity(newCapacity))
276 ensureCapacity(unsigned int newCapacity) argument
[all...]
H A DOSData.cpp224 unsigned int OSData::ensureCapacity(unsigned int newCapacity) argument
228 if (newCapacity <= capacity)
231 newCapacity = (((newCapacity - 1) / capacityIncrement) + 1)
234 newData = (unsigned char *) kalloc(newCapacity);
237 bzero(newData + capacity, newCapacity - capacity);
242 ACCUMSIZE( newCapacity - capacity );
244 capacity = newCapacity;
H A DOSArray.cpp187 unsigned int OSArray::ensureCapacity(unsigned int newCapacity) argument
192 if (newCapacity <= capacity)
196 newCapacity = (((newCapacity - 1) / capacityIncrement) + 1)
198 newSize = sizeof(const OSMetaClassBase *) * newCapacity;
210 capacity = newCapacity;
H A DOSOrderedSet.cpp125 unsigned int OSOrderedSet::ensureCapacity(unsigned int newCapacity) argument
130 if (newCapacity <= capacity)
134 newCapacity = (((newCapacity - 1) / capacityIncrement) + 1)
136 newSize = sizeof(_Element) * newCapacity;
148 capacity = newCapacity;
H A DOSSet.cpp186 unsigned int OSSet::ensureCapacity(unsigned int newCapacity) argument
188 return members->ensureCapacity(newCapacity);
/xnu-2422.115.4/iokit/Kernel/
H A DIORangeAllocator.cpp139 UInt32 newCapacity; local
145 newCapacity = capacity + capacityIncrement;
146 newElements = IONew( IORangeAllocatorElement, newCapacity );
162 capacity = newCapacity;
/xnu-2422.115.4/libkern/libkern/c++/
H A DOSCollection.h351 * @param newCapacity The total number of objects the collection
362 * at least <code>newCapacity</code> objects.
374 virtual unsigned int ensureCapacity(unsigned int newCapacity) = 0;
H A DOSSerialize.h279 virtual unsigned int ensureCapacity(unsigned int newCapacity);
H A DOSArray.h395 * @param newCapacity The total number of objects the array
405 * to accommodate at least <code>newCapacity</code> objects.
406 * If <code>newCapacity</code> is not greater than the current capacity,
411 virtual unsigned int ensureCapacity(unsigned int newCapacity);
H A DOSData.h463 * @param newCapacity The total number of bytes the OSData object
473 * to accommodate at least <code>newCapacity</code> bytes.
474 * If <code>newCapacity</code> is not greater than the current capacity,
481 virtual unsigned int ensureCapacity(unsigned int newCapacity);
H A DOSOrderedSet.h334 * @param newCapacity The total number of distinct objects the ordered set
344 * to accommodate at least <code>newCapacity</code> distinct objects.
345 * If <code>newCapacity</code> is not greater than the current capacity,
350 virtual unsigned int ensureCapacity(unsigned int newCapacity);
H A DOSSet.h473 * @param newCapacity The total number of distinct objects the set
482 * to accommodate at least <code>newCapacity</code> distinct objects.
483 * If <code>newCapacity</code> is not greater than the current capacity,
488 virtual unsigned int ensureCapacity(unsigned int newCapacity);
H A DOSDictionary.h522 * @param newCapacity The total number of key/object pairs the dictionary
532 * to accommodate at least <code>newCapacity</code> key/object pairs.
533 * If <code>newCapacity</code> is not greater than the current capacity,
538 virtual unsigned int ensureCapacity(unsigned int newCapacity);

Completed in 80 milliseconds