# 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

Function

Description

OHOS::ImageCacheMalloc (const ImageInfo &info)

void *

Applies for the image cache memory. You can customize the memory area when loading image resources.

OHOS::ImageCacheFree (ImageInfo &info)

void

Releases the image cache memory.

OHOS::UIMalloc (uint32_t size)

void *

Applies for memory for the graphics module. You can implement this function to override the malloc and new functions.

OHOS::UIFree (void *buffer)

void

Releases memory for the graphics module. You can implement this function to override the free and delete functions.