base_utils/Mem.h File Reference
Detailed Description
ITK API for memory allocation and disposal.
Definition in file Mem.h.
#include <base_utils/libbase_utils_exports.h>
#include <base_utils/libbase_utils_undef.h>
Go to the source code of this file.
Functions
- BASE_UTILS_API void * MEM_alloc (int n_bytes)
- BASE_UTILS_API void * MEM_realloc (void *ptr, int n_bytes)
- Reallocate memory and copy existing contents. Allocates a new memory block of input size and copies contents of existing memory block. Contents of extra memory in new block are undefined.
- BASE_UTILS_API void * MEM_crealloc (void *ptr, int n_items, int item_size)
- Reallocate memory for an array and copy existing data. Works like MEM_realloc but this one is for an array and initializes extra space with zeroes.
- BASE_UTILS_API void MEM_free (void *ptr)
- BASE_UTILS_API char * MEM_string_copy (const char *str)