XFusion API
v1.3.0
载入中...
搜索中...
未找到
xf_alloc.h
浏览该文件的文档.
1
13
#ifndef __XF_ALLOC_H__
14
#define __XF_ALLOC_H__
15
16
/* ==================== [Includes] ========================================== */
17
18
#include "
xf_heap_internal_config.h
"
19
20
#include "
xf_heap.h
"
21
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
/* ==================== [Defines] =========================================== */
32
33
/* ==================== [Typedefs] ========================================== */
34
35
/* ==================== [Global Prototypes] ================================= */
36
43
void
*
xf_heap_malloc
(
unsigned
int
size);
44
50
void
xf_heap_free
(
void
*pv);
51
58
unsigned
int
xf_heap_region
(
const
xf_heap_region_t
*
const
heap_regions);
59
66
unsigned
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__
_xf_heap_region_t
堆内存块结构体。
Definition
xf_heap.h:67
xf_heap_free
void xf_heap_free(void *pv)
带内存管理的内存释放函数。
Definition
xf_alloc.c:119
xf_heap_get_block_size
unsigned int xf_heap_get_block_size(void *pv)
获取内存块的实际大小。
Definition
xf_alloc.c:204
xf_heap_region
unsigned int xf_heap_region(const xf_heap_region_t *const heap_regions)
内存注册,需要在使用 xf_heap_malloc 之前注册。
Definition
xf_alloc.c:141
xf_heap_malloc
void * xf_heap_malloc(unsigned int size)
带内存管理的内存申请函数。
Definition
xf_alloc.c:60
xf_heap.h
堆内存接口。
xf_heap_internal_config.h
components
xf_heap
xf_heap
src
xf_alloc.h
生成于 2025年 一月 21日 星期二 17:25:09 , 为 XFusion API使用
1.9.8