API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IHEAP_GETMEMSTATS()

Brew Release
Brew MP 1.0.2
See Also
IHeap IHEAP_CheckAvail() ISHELL_GetDeviceInfo()
Description
This function returns statistics about the total memory currently in use. To check whether a block of a specific size can be allocated, the IHEAP_CheckAvail() function may be called (however, the use of IHEAP_CheckAvail() is discouraged). To get the total memory in the system, the function ISHELL_GetDeviceInfo() may be called.
Use of this method is discouraged. Use GETRAMFREE() instead. See the Comments section.
Params
pIHeap
[]:
Pointer to the IHeap interface object.
Interface
  • IHEAP
Prototype
  • uint32 IHEAP_GetMemStats(IHeap * pIHeap);
    
Return
  • Total used memory in the system.
Side Effect
  • None
Comments
Use of this method is discouraged. Use GETRAMFREE() instead. The IHEAP_GetMemStats() return value can be calculated from GETRAMFREE() by subtracting free space from total space.