Allocates memory using the specified allocator.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate the memory. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
The size of the memory to allocate.
A bitfield containing flags that suggest how memory is to be allocated.
0indicates no hints. No hints are currently defined, so only
0should be passed for this value.
A pointer to the newly allocated memory.