FROM : Finlay Dobbie
DATE : Sat Dec 25 23:43:38 2004
On Sat, 25 Dec 2004 15:08:57 -0600, Prachi Gauriar <<email_removed>> wrote:
> There's also void NSZoneMalloc
> void *NSZoneMalloc(NSZone *zone, unsigned int size)
>
> It's like malloc, but allocates from the specified zone, which seems
> more appropriate for objects allocated/copied using
> +allocWithZone:/copyWithZone:. There's also NSZoneCalloc, NSZoneFree,
> and NSZoneRealloc.
As of 10.2 or thereabouts, NSZone is bridged with malloc_zone_t, see
<malloc/malloc.h>. malloc uses the same implementation.
-- Finlay
DATE : Sat Dec 25 23:43:38 2004
On Sat, 25 Dec 2004 15:08:57 -0600, Prachi Gauriar <<email_removed>> wrote:
> There's also void NSZoneMalloc
> void *NSZoneMalloc(NSZone *zone, unsigned int size)
>
> It's like malloc, but allocates from the specified zone, which seems
> more appropriate for objects allocated/copied using
> +allocWithZone:/copyWithZone:. There's also NSZoneCalloc, NSZoneFree,
> and NSZoneRealloc.
As of 10.2 or thereabouts, NSZone is bridged with malloc_zone_t, see
<malloc/malloc.h>. malloc uses the same implementation.
-- Finlay
| Related mails | Author | Date |
|---|---|---|
| Peter Karlsson | Dec 25, 18:54 | |
| Charlton Wilbur | Dec 25, 19:42 | |
| Prachi Gauriar | Dec 25, 22:08 | |
| Finlay Dobbie | Dec 25, 23:43 | |
| Sherm Pendley | Dec 26, 17:42 |






Cocoa mail archive

