Memory Mgr
SetApplBase Set base address of application heap and initialize MoreMasters Create an additional block of master pointers MaxApplZone Expand application heap to largest possible value Allocate/Dispose Handles
NewHandle Allocate relocatable block from current heap zone RecoverHandle Obtain handle from a pointer to a relocatable block NewHandleClear Allocate cleared relocatable block from current heap zone NewHandleSys Allocate relocatable block from system heap zone Temporary Memory
MFFreeMem total free memory available for temporary allocation MFMaxMem Get maximum contiguous bytes after compaction and purging of heap
MFTopMem get address of top of application's memory partition MFTempHUnLock unlock a handle in the MultiFinder heap zone
Handle Properties
HLock Lock a handle's data area (keep it from moving) HUnlock Unlock a handle's data (allowing it to be moved) HPurge Make a relocatable block purgeable HNoPurge Disallow purging of relocatable data block HGetState Obtain the value of a relocatable block's tag byte HSetState Restore the value of a relocatable block's tag byte HSetRBit Tag block for treatment as a resource HClrRBit Clear relocatable block's resource tag Ptrs
NewPtr Allocate a nonrelocatable block of memory DisposPtr Release nonrelocatable memory block GetPtrSize Obtain the size of a nonrelocatable memory block SetPtrSize Shrink or expand a nonrelocatable memory block NewPtrClear Allocate an cleared nonrelocatable block of memory NewPtrSys Allocate a nonrelocatable block of memory in the system heap
NewPtrSysClear Allocate an empty nonrelocatable block of memory on the system heap
Heap Maintenance
FreeMem Get amount of free space in current heap zone
PurgeSpace Check free space after a purge (without purging) MaxBlock Get size of largest free block (without compacting)
MaxBlockSys Get size of largest free block in system heap PurgeMem Purge blocks without compacting the heap
CompactMem Compact heap until a specified block is available
CompactMemSys Compact system heap until a specified block is available MaxMem Compact heap; return free space and max growth
MaxMemSys Compact system heap; return free space and max growth ResrvMem Compact heap to create free space low in heap Zones
GZSaveHnd Get handle to data to not move during zone growth GetZone Get address of the current heap zone SetZone Select a different heap zone as the 'current zone' ApplicZone Get address of the start of application heap zone SystemZone Get address of the start of the system heap zone PtrZone Find which heap zone owns a nonrelocatable block HandleZone Find which heap zone owns relocatable block Setting and Restoring the A5 World
SetA5 Set the current value of A5. Manipulating Memory Addresses
StripAddress Strip the high order byte off an address in 24 bit mode Virtual Memory
HoldMemory Make part of the address space resident in memory UnholdMemory Make part of the address space eligible for paging LockMemory Make part of the address space immovable GetPhysical Translate logical addresses to physical ones DeferUserFn Can code that might cause page faults be called safely? Temporary Memory Routines
TempFreeMem Find out howmuch temporary memory is available TempMaxMem Find the largest contiguous block available TempNewHandle Allocate a new relocatable block of temporary memory TempHLock Lock a specified relocatable block of temporary memory Temporary Memory Routines
TopMem Get address of end of RAM StackSpace Obtain amount of unused space in the stack BlockMove Copy memory from one place to another MoveHHi Move a relocatable block as high as possible HLockHi Move a block as high as possible and lock it OS Utilities Additional memory block tools