# develop-02 9004 April 1990 — source transcripts, page 2

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-develop-02-9004-april-1990-b9aa41/2)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-02-9004-april-1990-b9aa41/2#scan-79be2f82a4d0d1fac4bc97b1fc0d5b687f586f51feeeddda1717fac54262776c)

Transcribed text:

FreeMemory   This function returns the amount of free space in the
PtrObject   heap, as returned by the trap   FreeMem . If no
separate heap exists, this function will return the amount of
free memory in the default (application) heap.
MaxMemory   This function returns the size of the largest free block in
the   PtrObject   heap, as returned by the trap   MaxMem . If no
separate heap exists, this function will return the amount of
free memory in the default (application) heap.
operator new   This function is called by the C++ compiler to allocate memory
for   PtrObject s. You never need to call it directly.
operator delete   This function is called by the C++ compiler to deallocate memory
used by   PtrObject s. You never need to call it directly.
Here is the class declaration for   PtrObject , which would normally be found in the
header file PtrObject.h.
class   PtrObject   {
public:
static   OSErr   AllocHeap(size_t   heapSize);
//   Create   a   heap   heapSize   bytes   long   to   allocate
//   objects   in.
static   void   DisposeHeap();
//   Free   up   the   heap   allocated   by   a   previous   call
//   to   AllocHeap.
static   long   FreeMemory();
//   Return   the   total   amount   of   free   space   in   the   heap.
static   Size   MaxMemory();
//   Return   the   size   of   the   largest   free   block   in   the   heap.
void*   operator   new(size_t   size);
void   operator   delete(void*   p);
//   These   are   our   special   allocation   and
//   deallocation   operators.
private:
static   THz   fZone;
//   Our   private   zone   pointer.
};
d e v e l o p   April 1990
122

Reading notes: Source appears to contain OCR-style spacing artifacts (e.g., 'd e v e l o p') and inline code formatting markers that may affect reading order.

Printed dates: April 1990

Languages: English

[Original PDF page 12](https://www.vintageapple.net/files/026e52ae3169351a0c6703678c14506008ef18677d9a4b1eec2a77f9e80ddeab/develop-02_9004_April_1990.pdf#page=12)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/va-develop-02-9004-april-1990-b9aa41/1.md)
