Name
ec_mt_realloc — Reallocate memory against a given memtype
Synopsis
#include "ec_malloc.h"
| void * **ec_mt_realloc** (
| def, | |
| | old, | |
| | oldsize, | |
| | size)
; | |
struct ec_mem_type_def * <var class="pdparam">def</var>
;
void * <var class="pdparam">old</var>
;
size_t <var class="pdparam">oldsize</var>
;
size_t <var class="pdparam">size</var>
;
Description
**Configuration Change. ** This feature is available starting from Momentum 3.0.18.
Reallocate memory against a given memtype.
Note
This performs a raw reallocation from the allocator backend. Do not call this function directly, ec_realloc will call it at the appropriate time.
Fixed sized allocations are never resized.
- def
-
The memory type. For more information about memory types see Memory Types.
- old
-
A void pointer to the old memory location.
- oldsize
-
The old memory size..
- size
-
The new memory size.