参考代码
This commit is contained in:
33
components/system/include/os/os_heap.h
Executable file
33
components/system/include/os/os_heap.h
Executable file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* @file os_heap.h
|
||||
* @author LokLiang (lokliang@163.com)
|
||||
* @brief
|
||||
* @version 0.1
|
||||
* @date 2023-05-01
|
||||
*
|
||||
* @copyright Copyright (c) 2023
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __OS_HEAP_H__
|
||||
#define __OS_HEAP_H__
|
||||
|
||||
#include "os/os_common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
void *os_malloc(size_t size);
|
||||
void *os_calloc(size_t size);
|
||||
void *os_realloc(void *p, size_t size);
|
||||
void os_free(void *p);
|
||||
|
||||
void os_heap_info(size_t *used_size, size_t *free_size, size_t *max_block_size);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __OS_HEAP_H__ */
|
||||
Reference in New Issue
Block a user