Function

NSZoneFromPointer

Gets the zone for a given block of memory.

Declaration

NSZone * NSZoneFromPointer(void *ptr);

Return Value

The zone for the block of memory indicated by pointer, or NULL if the block was not allocated from a zone.

Discussion

pointer must be one that was returned by a prior call to an allocation function.

See Also

Managing Zones

NSCreateZone

Creates a new zone.

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.

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.