The MeMemory API allows interfacing in a portable manner with all sorts of memory managers. It exists as libraries should not implement their own memory management, but should rely on an application wide memory management library, which of course depends on the application.
Because of this, and to allow libraries to be delivered as binaries, access to memory manager functions is via function pointers.
When a library needs integrating in an application, a wrapper should be written that implements this API and invokes the application's own memory manager.
Both because of MathEngine's own internal needs and as examples of how to write such wrappers, this API comes with two predefined wrappers, one for the C language standard malloc memory manager and one for a fixed size pools of fixed size blocks memory manager that is also included.
As examples of use (not to be followed in programming style) one can look at the test codes for the wrappers.
Copyright MathEngine PLC 2000, all rights reserved.