home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks3 / Foundation.framework / Headers / NSZone.h < prev   
Text File  |  1996-01-22  |  2KB  |  50 lines

  1. /*    NSZone.h
  2.     Allocation of large regions
  3.     Copyright 1994, NeXT Computer, Inc.
  4. */
  5.  
  6. #import <Foundation/NSObjCRuntime.h>
  7.  
  8. @class NSString;
  9.  
  10. typedef struct _NSZone NSZone;
  11.  
  12. FOUNDATION_EXPORT
  13. extern NSZone *NSDefaultMallocZone(void);
  14. FOUNDATION_EXPORT
  15. extern NSZone *NSCreateZone(unsigned startSize, unsigned granularity, BOOL canFree);
  16. FOUNDATION_EXPORT
  17. extern void NSRecycleZone(NSZone *zone);
  18. FOUNDATION_EXPORT
  19. extern void NSSetZoneName(NSZone *zone, NSString *name);
  20. FOUNDATION_EXPORT
  21. extern NSString *NSZoneName(NSZone *zone);
  22. FOUNDATION_EXPORT
  23. extern NSZone *NSZoneFromPointer(void *ptr);
  24.  
  25. FOUNDATION_EXPORT
  26. extern void *NSZoneMalloc(NSZone *zone, unsigned size);
  27. FOUNDATION_EXPORT
  28. extern void *NSZoneCalloc(NSZone *zone, unsigned numElems, unsigned byteSize);
  29. FOUNDATION_EXPORT
  30. extern void *NSZoneRealloc(NSZone *zone, void *ptr, unsigned size);
  31. FOUNDATION_EXPORT
  32. extern void NSZoneFree(NSZone *zone, void *ptr);
  33.  
  34. FOUNDATION_EXPORT
  35. extern unsigned NSPageSize(void);
  36. FOUNDATION_EXPORT
  37. extern unsigned NSLogPageSize(void);
  38. FOUNDATION_EXPORT
  39. extern unsigned NSRoundUpToMultipleOfPageSize(unsigned bytes);
  40. FOUNDATION_EXPORT
  41. extern unsigned NSRoundDownToMultipleOfPageSize(unsigned bytes);
  42. FOUNDATION_EXPORT
  43. extern void *NSAllocateMemoryPages(unsigned bytes);
  44. FOUNDATION_EXPORT
  45. extern void NSDeallocateMemoryPages(void *ptr, unsigned bytes);
  46. FOUNDATION_EXPORT
  47. extern void NSCopyMemoryPages(const void *source, void *dest, unsigned bytes);
  48. FOUNDATION_EXPORT
  49. extern unsigned NSRealMemoryAvailable(void);
  50.