Carbon


ATSUMemoryCallbacks

Header: ATSUnicode.h

union ATSUMemoryCallbacks {
    union {
          ATSUCustomAllocFunc Alloc; 
      ATSUCustomFreeFunc Free; 
      ATSUCustomGrowFunc Grow; 
      void *memoryRefCon;
    } callbacks; 
    THz heapToUse;
};

Field descriptions

callbacks

A pointer of type ATSUCustomAllocFunc to your memory allocation callback function.

heapToUse

A pointer of type ATSUCustomFreeFunc to your memory deallocation callback function.

The ATSUMemoryCallbacks type represents a union containing either pointers to your application-defined memory allocation functions or the heap that you want ATSUI to use when allocating memory. If you want to control memory allocation in ATSUI, you should supply pointers to your memory allocation callback functions in the callbacks structure field of the union. If you want ATSUI to control memory allocation, you should supply the memory heap for ATSUI to use in the heapToUse field.

The ATSUMemoryCallbacks union is passed back by the function ATSUCreateMemorySetting to represent the newly-created memory setting.

VERSION NOTES

Available beginning with ATSUI 1.1.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)