#include <axis2_allocator.h>
Public Attributes | |
void *(* | malloc_fn )(struct axis2_allocator *allocator, size_t size) |
void *(* | realloc )(struct axis2_allocator *allocator, void *ptr, size_t size) |
void(* | free_fn )(struct axis2_allocator *allocator, void *ptr) |
Encapsulator for memory allocating routines
void( * axis2_allocator::free_fn)(struct axis2_allocator *allocator, void *ptr) |
frees memory
allocator | pointer to allocator struct. In the default implementation this is not used, however this parameter is useful when the allocator implementation is dealing with a memory pool. | |
ptr | pointer to be freed |
void*( * axis2_allocator::malloc_fn)(struct axis2_allocator *allocator, size_t size) |
allocates memory
allocator | pointer to allocator struct. In the default implementation this is not used, however this parameter is useful when the allocator implementation is dealing with a memory pool. | |
size | size of the memory block to be allocated |
void*( * axis2_allocator::realloc)(struct axis2_allocator *allocator, void *ptr, size_t size) |
re-llocates memory
allocator | pointer to allocator struct. In the default implementation this is not used, however this parameter is useful when the allocator implementation is dealing with a memory pool. | |
ptr | memory block who's size to be changed | |
size | size of the memory block to be allocated |