![]() |
SetPtrSize |
||||
Header: | MacMemory.h | Carbon status: | Supported | |
Changes the logical size of the nonrelocatable block corresponding to a pointer.
void SetPtrSize ( Ptr p, Size newSize );
A pointer to a nonrelocatable block.
The desired new logical size, in bytes, of the nonrelocatable block.
An attempt to increase the size of a nonrelocatable block might fail because of a block above it that is either nonrelocatable or locked. You should be prepared for this possibility.
Call the function MemError to get the result code. See
Because SetPtrSize allocates memory, you should not call it at interrupt time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)