Function

NSCreateZone

Creates a new zone.

Declaration

NSZone * NSCreateZone(NSUInteger startSize, NSUInteger granularity, BOOL canFree);

Return Value

A pointer to a new zone of startSize bytes, which will grow and shrink by granularity bytes. If canFree is 0, the allocator will never free memory, and malloc will be fast. Returns NULL if a new zone could not be created.

See Also

Managing Zones

NSRecycleZone

Frees memory in a zone.

NSSetZoneName

Sets the name of the specified zone.

NSZoneCalloc

Allocates memory in a zone.

NSZoneFree

Deallocates a block of memory in the specified zone.

NSZoneFromPointer

Gets the zone for a given block of memory.

NSZoneMalloc

Allocates memory in a zone.

NSZoneName

Returns the name of the specified zone.

NSZoneRealloc

Allocates memory in a zone.

NSDefaultMallocZone

Returns the default zone.