|
XFusion API v1.3.0
|
堆内存接口。 更多...
#include "xf_heap_internal_config.h"
结构体 | |
| struct | _xf_heap_region_t |
| 堆内存块结构体。 更多... | |
| struct | _xf_alloc_func_t |
| 内存分配操作集。 更多... | |
| struct | _xf_heap_api_t |
类型定义 | |
| typedef struct _xf_heap_region_t | xf_heap_region_t |
| 堆内存块结构体。 | |
| typedef struct _xf_alloc_func_t | xf_alloc_func_t |
| 内存分配操作集。 | |
| typedef void *(* | xf_malloc_t) (unsigned int size) |
| typedef void(* | xf_free_t) (void *pv) |
| typedef unsigned int(* | xf_heap_get_free_size_t) (void) |
| typedef unsigned int(* | xf_heap_get_min_ever_free_size_t) (void) |
| typedef struct _xf_heap_api_t | xf_heap_api_t |
函数 | |
| void * | xf_malloc (unsigned int size) |
| 申请内存。 | |
| void | xf_free (void *pv) |
| 释放内存。 | |
| unsigned int | xf_heap_get_free_size (void) |
| 获取内存总空闲大小。 | |
| unsigned int | xf_heap_get_min_ever_free_size (void) |
| 获取曾经最小的空闲内存块。 | |
| int | xf_heap_api_redirect (const xf_heap_api_t *api) |
| 重新定义内存管理接口 | |
| int | xf_heap_init (const xf_heap_region_t *const regions) |
| 内存初始化。 | |
| int | xf_heap_uninit (void) |
| 内存反初始化。 | |
| typedef struct _xf_heap_region_t xf_heap_region_t |
堆内存块结构体。
| typedef struct _xf_alloc_func_t xf_alloc_func_t |
内存分配操作集。
| typedef struct _xf_heap_api_t xf_heap_api_t |
| int xf_heap_api_redirect | ( | const xf_heap_api_t * | api | ) |
| int xf_heap_init | ( | const xf_heap_region_t *const | regions | ) |