29 #ifndef MEMORY_POOL_STATIC_H 30 #define MEMORY_POOL_STATIC_H 34 #include "core/typedefs.h" 48 virtual void*
alloc(
size_t p_bytes,
const char *p_description)=0;
49 virtual void*
realloc(
void * p_memory,
size_t p_bytes)=0;
50 virtual void free(
void *p_ptr)=0;
52 virtual size_t get_available_mem()
const=0;
53 virtual size_t get_total_usage()=0;
54 virtual size_t get_max_usage()=0;
57 virtual int get_alloc_count()=0;
58 virtual void * get_alloc_ptr(
int p_alloc_idx)=0;
59 virtual const char* get_alloc_description(
int p_alloc_idx)=0;
60 virtual size_t get_alloc_size(
int p_alloc_idx)=0;
62 virtual void dump_mem_to_file(
const char* p_file)=0;
virtual void * realloc(void *p_memory, size_t p_bytes)=0
Pointer in p_description shold be to a const char const like "hello".
Definition: memory_pool_static.h:39
virtual void * alloc(size_t p_bytes, const char *p_description)=0
Pointer in p_description shold be to a const char const like "hello".
virtual void free(void *p_ptr)=0
Pointer in p_description shold be to a const char const.