Creates an empty CFMutableData object.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The CFAllocator object to be used to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
The maximum number of bytes that the CFData object can contain. The CFData object starts empty and can grow to contain this number of values (and it can have less).
0to specify that the maximum capacity is not limited. The value must not be negative.
A CFMutableData object or
NULL if there was a problem creating the object. Ownership follows the The Create Rule.
This function creates an empty (that is, content-less) CFMutableData object. You can add raw data to this object with the
CFData function, and thereafter you can replace and delete characters with the appropriate CFMutableData functions. If the
capacity parameter is greater than
0, any attempt to add characters beyond this limit can result in undefined behavior.