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

Developer

API Reference

IHEAP_MALLOCREC()

Brew Release
Brew MP 1.0.2
See Also
IHeap IHEAP_Malloc() IHEAP_Realloc()
Description
This function allocates the memory required for a specified standard datatype. It then casts the allocated pointer to that datatype before returning to the caller. This function initializes the memory that it returns to zero.
Use of this method is discouraged. Use MALLOCREC() instead.
Params
pIHeap
[]:
Pointer to the IHeap Interface object.
dataType
[]:
Specifies the standard data type for which memory needs to be allocated.
Interface
  • IHEAP
Prototype
  • (type * ) IHEAP_MallocRec(IHeap * pIHeap,type dataType); 
    
Return
  • Pointer to the requested data type: Successful. NULL: Failure.
Side Effect
  • If the heap cannot immediately satisfy the request, this call may send a notification to applets in the system asking them to release unneeded memory; if this doesn't free up enough memory, background applications may be closed in order to satisfy the request.
Comments
Use of this method is discouraged. Use MALLOCREC() instead.