10#ifndef __TAL_MEMORY_H__
11#define __TAL_MEMORY_H__
13#include "tuya_cloud_types.h"
25#define Malloc(req_size) tal_malloc(req_size)
34#define Calloc(req_count, req_size) tal_calloc(req_count, req_size)
42#define Free(ptr) tal_free(ptr)
INT_T tal_system_memcmp(CONST VOID_T *str1, CONST VOID_T *str2, SIZE_T n)
Compare the first n bytes of store str1 and store str2
SIZE_T tal_system_strlen(CONST CHAR_T *str)
VOID_T * tal_realloc(VOID_T *ptr, SIZE_T size)
Re-allocate the memory
VOID_T * tal_malloc(SIZE_T size)
Alloc memory of system
VOID_T tal_free(VOID_T *ptr)
Free memory of system
VOID_T * tal_calloc(SIZE_T nitems, SIZE_T size)
Allocate and clear the memory
VOID_T * tal_system_memset(VOID_T *src, INT_T ch, SIZE_T n)
set memory
VOID_T * tal_system_memcpy(VOID_T *dst, CONST VOID_T *src, SIZE_T n)
Alloc memory of system