mem_api.h

Overview

Related Modules:

Graphic

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 Name Description
OHOS::ImageCacheMalloc (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.