29 lines
562 B
C
29 lines
562 B
C
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#define ta_PAGE_SIZE(x)(x*1024*64)
|
|
|
|
void ta_init(const size_t heap_blocks, const size_t split_thresh, const size_t alignment);
|
|
uint32_t ta_grow(uint32_t pages);
|
|
uint32_t ta_page_count();
|
|
|
|
void *malloc(size_t num);
|
|
void *calloc(size_t num, size_t size);
|
|
void free(void *ptr);
|
|
void *realloc(void *ptr, size_t num);
|
|
|
|
size_t ta_ptr_size(void *ptr);
|
|
size_t ta_num_free();
|
|
size_t ta_num_used();
|
|
size_t ta_num_fresh();
|
|
bool ta_check();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|