#include <stddef.h>
#include "base/inttypes.h"
Go to the source code of this file.
Typedefs | |
typedef int32_t *(* | allocator_f )(size_t intSize, void *data) |
Allocator function. | |
typedef void(* | deallocator_f )(void *mem, size_t intSize, void *data) |
Deallocator function. | |
Functions | |
int32_t * | base_malloc (size_t intSize, void *unused) |
Default allocator function based on malloc. | |
void | base_free (void *mem, size_t unused1, void *unused2) |
Default deallocator function based on free. | |
Variables | |
allocator_t | base_mallocator |
Default allocator type based on malloc. |
In different places where C libraries need memory management, we want to stay independent from particular needs. A generic allocator function is declared for this purpose.
|
Allocator function.
|
|
Deallocator function.
|
|
Default deallocator function based on free.
|
|
Default allocator function based on malloc.
|
|
Default allocator type based on malloc.
|