Function

NSZoneRealloc

Allocates memory in a zone.

Declaration

void * NSZoneRealloc(NSZone *zone, void *ptr, NSUInteger size);

Discussion

Changes the size of the block of memory pointed to by ptr to size bytes. It may allocate new memory to replace the old, in which case it moves the contents of the old memory block to the new block, up to a maximum of size bytes. ptr may be NULL. This function returns NULL if it was unable to allocate the requested memory.

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.

NSZoneFromPointer

Gets the zone for a given block of memory.

NSZoneMalloc

Allocates memory in a zone.

NSZoneName

Returns the name of the specified zone.

NSDefaultMallocZone

Returns the default zone.