Zones
These functions are used to manipulate
memory zones, represented by the data type
NSZone.
-
NSAllocateMemoryPages void*NSAllocateMemoryPages(unsignedbytes)-
NSCopyMemoryPages voidNSCopyMemoryPages(constvoid*source,void*dest,unsignedbytes)-
NSCreateZone NSZone*NSCreateZone(unsignedstartSize,unsignedgranularity,BOOLcanFree)-
NSDeallocateMemoryPages voidNSDeallocateMemoryPages(void*ptr,unsignedbytes)-
NSDefaultMallocZone NSZone*NSDefaultMallocZone(void)-
NSLogPageSize unsignedNSLogPageSize(void)-
NSPageSize unsignedNSPageSize(void)-
NSRealMemoryAvailable unsignedNSRealMemoryAvailable(void)-
NSRecycleZone voidNSRecycleZone(NSZone*zone)-
NSReturnAddress void*NSReturnAddress(unsignedframe)-
NSRoundDownToMultipleOfPageSize unsignedNSRoundDownToMultipleOfPageSize(unsignedbytes)-
NSRoundUpToMultipleOfPageSize unsignedNSRoundUpToMultipleOfPageSize(unsignedbytes)-
NSSetZoneName voidNSSetZoneName(NSZone*zone,NSString*name)-
NSZoneCalloc void*NSZoneCalloc(NSZone*zone,unsignednumElems,unsignedbyteSize)-
NSZoneFree voidNSZoneFree(NSZone*zone,void*ptr)-
NSZoneFromPointer NSZone*NSZoneFromPointer(void*ptr)-
NSZoneMalloc void*NSZoneMalloc(NSZone*zone,unsignedsize)-
NSZoneName NSString*NSZoneName(NSZone*zone)-
NSZoneRealloc void*NSZoneRealloc(NSZone*zone,void*ptr,unsignedsize)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access