CFDictionaryRetainCallBack
Prototype of a callback function used to retain a value or key being added to a dictionary.
Declaration
typealias CFDictionaryRetainCallBack = (CFAllocator?, UnsafeRawPointer?) -> UnsafeRawPointer?Parameters
- allocator:
The dictionary’s allocator.
- value:
The value being added to the dictionary.
Return Value
The value or key to store in the dictionary, which is usually the value parameter passed to this callback, but may be a different value if a different value should be stored in the collection.
Discussion
This callback is passed to CFDictionaryCreate(_:_:_:_:_:_:) in a CFDictionaryKeyCallBacks and CFDictionaryValueCallBacks structure.