Function

NSAllocateCollectable

Allocates collectable memory.

Declaration

void * NSAllocateCollectable(NSUInteger size, NSUInteger options);

Parameters

size

The number of bytes of memory to allocate.

options

0 or NSScannedOption: A value of 0 allocates non-scanned memory; a value of NSScannedOption allocates scanned memory.

Return Value

A pointer to the allocated memory, or NULL if the function is unable to allocate the requested memory.