![]() |
CFAllocatorGetContext | Header: CFBase.h |
Obtains the context of the specified allocator or of the default allocator.
void CFAllocatorGetContext ( CFAllocatorRef allocator, CFAllocatorContext *context );
A value of reference type CFAllocatorRef. Pass a reference to a specific allocator if you want that allocator's context. Pass NULL to obtain the context of the default allocator.
A structure of type CFAllocatorContext. On return, it holds the context of the requested allocator.
You use the CFAllocatorGetContext function to obtain the context of an allocator. An allocator's context, a structure of type CFAllocatorContext, holds pointers to various function callbacks (particularly those that allocate, reallocate, and deallocate memory for an object). The context also contains a version number and the info field for user-defined data. To obtain the value of the info field you usually first have to get an allocator's context.