Classes | |
struct | axis2_allocator |
Axis2 memory allocator. More... | |
Defines | |
#define | AXIS2_MALLOC(allocator, size) ((allocator)->malloc_fn(allocator, size)) |
#define | AXIS2_REALLOC(allocator, ptr, size) ((allocator)->realloc(allocator, ptr, size)) |
#define | AXIS2_FREE(allocator, ptr) ((allocator)->free_fn(allocator, ptr)) |
Typedefs | |
typedef axis2_allocator | axis2_allocator_t |
Axis2 memory allocator. | |
Functions | |
AXIS2_EXTERN axis2_allocator_t * | axis2_allocator_init (axis2_allocator_t *allocator) |
AXIS2_EXTERN axis2_status_t | axis2_allocator_free (axis2_allocator_t *allocator) |
typedef struct axis2_allocator axis2_allocator_t |
Axis2 memory allocator.
Encapsulator for memory allocating routines
AXIS2_EXTERN axis2_status_t axis2_allocator_free | ( | axis2_allocator_t * | allocator | ) |
This function should be used to deallocate memory if the default allocator provided by axis2_allocator_init()
allocator |
AXIS2_EXTERN axis2_allocator_t* axis2_allocator_init | ( | axis2_allocator_t * | allocator | ) |
Initializes (creates) an allocator.
allocator | user defined allcator. Optional, can be NULL. If NULL, a default allocator will be returned. |