CFArrayAppendValue(_:_:)
Adds a value to an array giving it the new largest index.
Declaration
func CFArrayAppendValue(_ theArray: CFMutableArray!, _ value: UnsafeRawPointer!)Parameters
- theArray:
The array to which
valueis to be added. IftheArrayis a limited-capacity array and it is full before this operation, the behavior is undefined. - value:
A CFType object or a pointer value to add to
theArray.
Discussion
The value parameter is retained by theArray using the retain callback provided when theArray was created. If value is not of the type expected by the retain callback, the behavior is undefined. The value parameter is assigned to the index one larger than the previous largest index and the count of theArray is increased by one.
See Also
CFMutableArray Miscellaneous Functions
CFArrayAppendArray(_:_:_:)CFArrayCreateMutable(_:_:_:)CFArrayCreateMutableCopy(_:_:_:)CFArrayExchangeValuesAtIndices(_:_:_:)CFArrayInsertValueAtIndex(_:_:_:)CFArrayRemoveAllValues(_:)CFArrayRemoveValueAtIndex(_:_:)CFArrayReplaceValues(_:_:_:_:)CFArraySetValueAtIndex(_:_:_:)CFArraySortValues(_:_:_:_:)