Updated on 2022-03-13 GMT+08:00

HIAIMemory:: IsDMalloc

Checks whether the memory is allocated by DMalloc. This API is defined in ai_memory.h.

Syntax

static bool IsDMalloc(const void* dataBuffer, const uint32_t& dataSize)

Parameter Description

Parameter

Description

Value Range

dataBuffer

Pointer to the memory to be determined

-

dataSize

Size of the memory address, in bytes

-

Return Value

true: The memory is applied for by using DMalloc.

false: The memory is not applied for by using DMalloc.