XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_alloc.h
浏览该文件的文档.
1
13#ifndef __XF_ALLOC_H__
14#define __XF_ALLOC_H__
15
16/* ==================== [Includes] ========================================== */
17
19
20#include "xf_heap.h"
21
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/* ==================== [Defines] =========================================== */
32
33/* ==================== [Typedefs] ========================================== */
34
35/* ==================== [Global Prototypes] ================================= */
36
43void *xf_heap_malloc(unsigned int size);
44
50void xf_heap_free(void *pv);
51
58unsigned int xf_heap_region(const xf_heap_region_t *const heap_regions);
59
66unsigned int xf_heap_get_block_size(void *pv);
67
68/* ==================== [Macros] ============================================ */
69
70#ifdef __cplusplus
71} /* extern "C" */
72#endif
73
79#endif // __XF_ALLOC_H__
堆内存块结构体。
Definition xf_heap.h:67
void xf_heap_free(void *pv)
带内存管理的内存释放函数。
Definition xf_alloc.c:119
unsigned int xf_heap_get_block_size(void *pv)
获取内存块的实际大小。
Definition xf_alloc.c:204
unsigned int xf_heap_region(const xf_heap_region_t *const heap_regions)
内存注册,需要在使用 xf_heap_malloc 之前注册。
Definition xf_alloc.c:141
void * xf_heap_malloc(unsigned int size)
带内存管理的内存申请函数。
Definition xf_alloc.c:60
堆内存接口。