- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
The allocator to use to allocate memory for the new object. Pass
kto use the current default allocator.
CFDictionaryRef containing the key/value pairs that are to be placed in a TXT record. Each key must be a CFStringRef and each value should be a CFDataRef or a CFStringRef. (See the discussion below for additional information about values that are CFStringRefs.) This function fails if any other data types are provided. The length of a key and its value should not exceed 255 bytes.
A CFData object containing the flattened form of
NULL if the dictionary could not be flattened. Ownership follows the The Create Rule.
This function flattens the key/value pairs in the dictionary specified by
key into a CFDataRef suitable for passing to
CFNet. Note that this function is not a general purpose function for flattening CFDictionaryRefs.
The keys in the dictionary referenced by
key must be CFStringRefs and the values must be CFDataRefs. Any values that are CFStringRefs are converted to CFDataRefs representing the flattened UTF-8 bytes of the string. The types of the values are not encoded in the CFDataRefs, so any CFStringRefs that are converted to CFDataRefs remain CFDataRefs when the CFDataRef produced by this function is processed by
This function is thread safe.