CFArraySetValueAtIndex(_:_:_:)
Changes the value at a given index in an array.
Declaration
func CFArraySetValueAtIndex(_ theArray: CFMutableArray!, _ idx: CFIndex, _ value: UnsafeRawPointer!)Parameters
- theArray:
The array in which the value is to be changed.
- idx:
The index at which to set the new value. The value must not lie outside the index space of
theArray(0toN-1inclusive, whereNis the count of the array before the operation). - value:
The value to set in
theArray. The value is retained bytheArrayusing the retain callback provided whentheArraywas created and the previous value atidxis released. If the value is not of the type expected by the retain callback, the behavior is undefined. The indices of other values are not affected.