getCapacity
Returns the number of objects the array can store without reallocating.
Declaration
virtual unsigned int getCapacity() const;Return Value
The number objects the array can store without reallocating.
Overview
OSArray objects grow when full to accommodate additional objects. See getCapacityIncrement and ensureCapacity.
See Also
Miscellaneous
copyCollectionensureCapacityflushCollectionfreegetCapacityIncrementgetCountgetLastObjectgetNextIndexOfObjectgetObjectinitWithArrayinitWithCapacityinitWithObjectsisEqualTo(const OSArray *)isEqualTo(const OSMetaClassBase *)mergeremoveObjectreplaceObjectserializesetCapacityIncrementsetObject(const OSMetaClassBase *)setObject(unsigned int, const OSMetaClassBase *)withArraywithCapacitywithObjects