![]() |
CFAllocatorAllocate | Header: CFBase.h |
Allocates memory using the specified allocator.
void *CFAllocatorAllocate ( CFAllocatorRef allocator, CFIndex size, CFOptionFlags hint );
A reference of type CFAllocatorRef that refers to the allocator object to be used for allocating memory. Pass a reference to a valid allocator or NULL to request the default allocator.
An integer value of type CFIndex. Pass the number of bytes you want allocated
A bitfield of type CFOptionsFlags. Pass flags to the allocator that suggest how memory is to be allocated. Zero indicates no hints.
A pointer to an allocated block of memory. Returns NULL if size is zero.