TuyaOS
tkl_memory.h
浏览该文件的文档.
1
10#ifndef __TKL_MEMORY_H__
11#define __TKL_MEMORY_H__
12
13#include "tuya_cloud_types.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
28VOID_T *tkl_system_malloc(SIZE_T size);
29
39VOID_T tkl_system_free(VOID_T* ptr);
40
49VOID_T *tkl_system_calloc(size_t nitems, size_t size);
50
59VOID_T *tkl_system_realloc(VOID_T* ptr, size_t size);
60
69
70#ifdef __cplusplus
71}
72#endif /* __cplusplus */
73
74#endif
75
VOID_T * tkl_system_malloc(SIZE_T size)
Alloc memory of system
VOID_T * tkl_system_calloc(size_t nitems, size_t size)
Allocate and clear the memory
VOID_T * tkl_system_realloc(VOID_T *ptr, size_t size)
Re-allocate the memory
VOID_T tkl_system_free(VOID_T *ptr)
Free memory of system
INT_T tkl_system_get_free_heap_size(VOID_T)
Get system free heap size