Last change
on this file since 1 was
1,
checked in by Xuefer, 12 years ago
|
initial import to online
|
File size:
916 bytes
|
Rev | Line | |
---|
[1] | 1 | typedef struct _xc_mem_t xc_mem_t; |
---|
| 2 | typedef struct _xc_block_t xc_block_t; |
---|
| 3 | typedef unsigned int xc_memsize_t; |
---|
| 4 | |
---|
| 5 | void *xc_mem_malloc(xc_mem_t *mem, xc_memsize_t size); |
---|
| 6 | int xc_mem_free(xc_mem_t *mem, const void *p); |
---|
| 7 | void *xc_mem_calloc(xc_mem_t *mem, xc_memsize_t memb, xc_memsize_t size); |
---|
| 8 | void *xc_mem_realloc(xc_mem_t *mem, const void *p, xc_memsize_t size); |
---|
| 9 | char *xc_mem_strndup(xc_mem_t *mem, const char *str, xc_memsize_t len); |
---|
| 10 | char *xc_mem_strdup(xc_mem_t *mem, const char *str); |
---|
| 11 | const xc_block_t *xc_mem_freeblock_first(xc_mem_t *mem); |
---|
| 12 | const xc_block_t *xc_mem_freeblock_next(const xc_block_t *block); |
---|
| 13 | xc_memsize_t xc_mem_block_size(const xc_block_t *block); |
---|
| 14 | xc_memsize_t xc_mem_block_offset(const xc_mem_t *mem, const xc_block_t *block); |
---|
| 15 | |
---|
| 16 | xc_memsize_t xc_mem_avail(xc_mem_t *mem); |
---|
| 17 | xc_memsize_t xc_mem_size(xc_mem_t *mem); |
---|
| 18 | |
---|
| 19 | xc_mem_t *xc_mem_init(void *ptr, xc_memsize_t size); |
---|
| 20 | void xc_mem_destroy(xc_mem_t *mem); |
---|
Note: See
TracBrowser
for help on using the repository browser.