|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
宏定义 | |
| #define | ircalloc(size, number) irzalloc((size) * (number)) |
| Allocate a block of memory and zero it. | |
函数 | |
| void | irmalloc_init_default (void) |
| void | irmalloc_new_pool (unsigned char *start, size_t size) |
| Add an additional memory pool to allocate from; the irmalloc implementation is not obliged to use this memory | |
| void * | irmalloc (size_t size) |
| Allocate a block of memory from internal RAM | |
| void * | irmemalign (size_t boundary, size_t size) |
| void * | irmalloc_panicking (size_t size) |
| Allocate a block of memory from internal RAM or panic on failure | |
| void * | irzalloc (size_t size) |
| Allocate a block of memory and zero it. | |
| void | irfree (void *buf) |
| Free a block of memory | |
| void * | irmalloc_dup (const void *orig, size_t size) |
| Duplicate the contents of a block of memory into irmalloc. | |
| void * | irrealloc (void *buf, size_t size) |
| Reallocate a block of memory | |
| void * | irrealloc_panicking (void *buf, size_t size) |
| char * | irmalloc_get_human_readable_stats (void) |
| Get some human readable statistics on the memory management state | |
| void | irmalloc_get_machine_readable_stats (uint32_t *current_allocated, uint32_t *total_free, uint32_t *max_free, uint32_t *num_allocs, uint32_t *num_frees) |
| Get some macine readable statistics on the memory management state | |
| #define ircalloc | ( | size, | |
| number | |||
| ) | irzalloc((size) * (number)) |
Allocate a block of memory and zero it.
| size | size of each block to allocate |
| number | number of blocks to allocate |
| void irfree | ( | void * | buf | ) |
Free a block of memory
| buf |
| void * irmalloc | ( | size_t | size | ) |
Allocate a block of memory from internal RAM
| size | size of the block to allocate |
| void * irmalloc_dup | ( | const void * | orig, |
| size_t | size | ||
| ) |
Duplicate the contents of a block of memory into irmalloc.
| orig | pointer to memory to duplicate |
| size | size of the block to duplicate |
| char * irmalloc_get_human_readable_stats | ( | void | ) |
Get some human readable statistics on the memory management state
| void irmalloc_get_machine_readable_stats | ( | uint32_t * | current_allocated, |
| uint32_t * | total_free, | ||
| uint32_t * | max_free, | ||
| uint32_t * | num_allocs, | ||
| uint32_t * | num_frees | ||
| ) |
Get some macine readable statistics on the memory management state
| current_allocated | pointer to memory to hold current allocated size |
| total_free | pointer to memory to hold current free pool size |
| max_free | pointer to memory to hold maximum free block size |
| num_allocs | pointer to memory to hold accumulated number of mallocs |
| num_frees | pointer to memory to hold accumulated number of frees |
| void irmalloc_init_default | ( | void | ) |
Initialise the internal memory with the default pool passed in via the linker
| void irmalloc_new_pool | ( | unsigned char * | start, |
| size_t | size | ||
| ) |
Add an additional memory pool to allocate from; the irmalloc implementation is not obliged to use this memory
| start | is the start memory address of the new pool |
| size | is number of bytes in the new memory pool |
| void * irmalloc_panicking | ( | size_t | size | ) |
Allocate a block of memory from internal RAM or panic on failure
| size | size of the block to allocate |
| void * irrealloc | ( | void * | buf, |
| size_t | size | ||
| ) |
Reallocate a block of memory
| void * irrealloc_panicking | ( | void * | buf, |
| size_t | size | ||
| ) |
Reallocate a block of memory or panic on failure
| void * irzalloc | ( | size_t | size | ) |
Allocate a block of memory and zero it.
| size | size of the block to allocate |