Contents

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 value is to be added. If theArray is 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