Local Memory

Up: GEOS SDK TechDocs | Up | Down | Next: 1 Design Philosophy
| One-page Version of this Chapter for Easy Printing

The GEOS memory manager is well suited to dealing with blocks of memory in the 2K-6K range. However, for small amounts of memory, the manager's overhead becomes significant. For this reason, GEOS provides local memory (or LMem ) routines. These routines let an application allocate a block of memory and designate it as a local memory heap . The application can then request small amounts of memory from this heap. The LMem library automatically reorganizes the heap when necessary to make space available.

The local memory routines are also used to manipulate objects. All objects are special LMem chunks which are stored in a special type of LMem heap (called an object block ). Most of the routines which work on chunks can also be used on objects.


Up: GEOS SDK TechDocs | Up | Down | Next: 1 Design Philosophy
| One-page Version of this Chapter for Easy Printing