Firelight Technologies FMOD Studio API
FSBANK_MEMORY_REALLOC_CALLBACK
Callback to re-allocate a block of memory to a different size.
C/C++ Syntax
void * FSBANK_CALLBACK FSBANK_MEMORY_REALLOC_CALLBACK(
void *ptr,
unsigned int size,
char *sourceStr
);
Parameters
ptr
Pointer to a block of memory to be resized. If this is NULL then a new block of memory is simply allocated.
size
Size of the memory to be reallocated. The original memory must be preserved.
sourceStr
Only valid (not null) in logging versions of FMOD. Gives a string with the fmod source code filename and line number in it, for better resource tracking.
Return Values
On success, a pointer to the newly re-allocated block of memory is returned.
On failure, NULL is returned.
Remarks
Returning an aligned pointer, of 16 byte alignment is recommended for speed purposes.
See Also
Version 1.10.02 Built on Dec 7, 2017