Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Memory /
Chapter 2 - Memory Manager / Memory Manager Reference
Memory Manager Routines


Manipulating Blocks of Memory

The Memory Manager provides three routines for copying blocks of memory referenced by pointers. To copy a block of memory to a nonrelocatable block, use the BlockMove procedure. To copy to a new relocatable block, use the PtrToHand function. To copy to an existing relocatable block, use the PtrToXHand function. If you want to use any of these routines to copy memory you access with a handle, you must first dereference and lock the handle. A fourth routine, HandToHand, allows you to copy information from one handle to another.

To concatenate blocks of memory, you can use the HandAndHand and PtrAndHand functions.


Subtopics
BlockMove
PtrToHand
PtrToXHand
HandToHand
HandAndHand
PtrAndHand

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996