|
|
The default memory descriptor specifies how the application and the client allocate and deallocate memory when the allocating code is different from the code that is freeing the memory. See the discussion in ``Memory management architecture''. The DmiSetDefaultMemDsc(3dmi) and DmiGetDefaultMemDsc(3dmi) functions pass the default memory management descriptor between the application and the client. Functions that require the memory management descriptor (memDsc) as a parameter use the default memory model when the descriptor is set to NULL. Initially, the default memory management model is a standard system malloc/free model set by the client. The function DmiGetSysMemDsc(3dmi) returns the memory descriptor of this system memory model.
See also: