# mem\_api.h - [Overview](#section1608891609165628) - [Summary](#section53237454165628) - [Functions](#func-members) ## **Overview** **Related Modules:** [Graphic](Graphic.md) **Description:** Defines the functions for memory application and release. You can implement the **malloc** and **free** functions to manage the memory. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Functions
OHOS::ImageCacheMalloc (const ImageInfo &info) |
Applies for the image cache memory. You can customize the memory area when loading image resources. |
OHOS::ImageCacheFree (ImageInfo &info) |
|
OHOS::UIMalloc (uint32_t size) |
Applies for memory for the graphics module. You can implement this function to override the malloc and new functions. |
OHOS::UIFree (void *buffer) |
Releases memory for the graphics module. You can implement this function to override the free and delete functions. |