TuyaOS
宏定义 | 函数
tal_memory.h 文件参考

This is tal_memory file 更多...

#include "tuya_cloud_types.h"
tal_memory.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#define Calloc(req_count, req_size)   tal_calloc(req_count, req_size)
 
#define Free(ptr)   tal_free(ptr)
 
#define Malloc(req_size)   tal_malloc(req_size)
 

函数

VOID_T * tal_calloc (SIZE_T nitems, SIZE_T size)
 Allocate and clear the memory 更多...
 
VOID_T tal_free (VOID_T *ptr)
 This API is used to free memory of system. 更多...
 
VOID_T * tal_malloc (SIZE_T size)
 This API is used to alloc memory of system. 更多...
 
VOID_T * tal_realloc (VOID_T *ptr, SIZE_T size)
 Re-allocate the memory 更多...
 
INT32_T tal_system_get_free_heap_size (VOID_T)
 Get system free heap size 更多...
 

详细描述

This is tal_memory file

版本
1.0
日期
2021-08-24

函数说明

◆ tal_calloc()

VOID_T * tal_calloc ( SIZE_T  nitems,
SIZE_T  size 
)

Allocate and clear the memory

参数
[in]nitemsthe numbers of memory block
[in]sizethe size of the memory block
返回
the memory address calloced

◆ tal_free()

VOID_T tal_free ( VOID_T *  ptr)

This API is used to free memory of system.

参数
[in]ptrmemory point
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_malloc()

VOID_T * tal_malloc ( SIZE_T  size)

This API is used to alloc memory of system.

参数
[in]sizememory size
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_realloc()

VOID_T * tal_realloc ( VOID_T *  ptr,
SIZE_T  size 
)

Re-allocate the memory

参数
[in]nitemssource memory address
[in]sizethe size after re-allocate
返回
VOID_T

◆ tal_system_get_free_heap_size()

INT32_T tal_system_get_free_heap_size ( VOID_T  )

Get system free heap size

参数
[in]paramnone
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h