Centralized functions to allocate, reallocate and deallocate memory. More...
#include <Memory.h>
Static Public Member Functions | |
static SC_COMPILER_EXPORT void * | allocate (size_t numBytes) |
Allocates numBytes bytes of memory. More... | |
static SC_COMPILER_EXPORT void * | reallocate (void *allocatedMemory, size_t numBytes) |
Change size of already allocated memory block. More... | |
static SC_COMPILER_EXPORT void | release (void *allocatedMemory) |
Free memory allocated by Memory::allocate and / or reallocated by Memory::reallocate. More... | |
Centralized functions to allocate, reallocate and deallocate memory.
|
static |
Allocates numBytes bytes of memory.
numBytes | Number of bytes to allocate |
|
static |
Change size of already allocated memory block.
Existing contents of input buffer will be copied over.
allocatedMemory | pointer to memory previously allocated by Memory::allocate or Memory::Reallocate |
numBytes | new size of the reallocated blck |
|
static |
Free memory allocated by Memory::allocate and / or reallocated by Memory::reallocate.
allocatedMemory | Memory to release / deallocate |