NSZone functions
The OpenStep specification defines several functions that deal with
zones. In libFoundation these functions are implemented as inline
functions that send the corresponding message to the zone instance or
directly to the NSZone class. The correspondency between them is
straightforward so check the method description for more information.
Here are the functions used to manipulate a zone:
NSZone* NSCreateZone(unsigned startSize, unsigned granularity, BOOL canFree);
NSZone* NSDefaultMallocZone(void);
NSZone* NSZoneFromPointer(void* pointer);
void* NSZoneMalloc(NSZone* zone, unsigned size);
void* NSZoneMallocAtomic(NSZone* zone, unsigned size);
void* NSZoneCalloc(NSZone* zone, unsigned numElems, unsigned byteSize);
void* NSZoneCallocAtomic(NSZone* zone, unsigned numElems,
unsigned byteSize);
void* NSZoneRealloc(NSZone* zone, void* pointer, unsigned size);
void NSZoneFree(NSZone* zone, void* pointer);
void NSRecycleZone(NSZone* zone);
void NSSetZoneName(NSZone* zone, NSString* name);
NSString* NSZoneName(NSZone* zone);
Go to the first, previous, next, last section, table of contents.