Starting refactor now.
This commit is contained in:
@ -34,7 +34,10 @@ static void * memoryCallRealloc(void *p, size_t newSize) {
|
||||
* @param size Size of the array you wish to buffer.
|
||||
* @return Pointer to the space in memory to use.
|
||||
*/
|
||||
void * memoryAllocate(const size_t size);
|
||||
template<typename T>
|
||||
T * memoryAllocate(const size_t size) {
|
||||
return (T*)memoryCallMalloc(size * sizeof(T));
|
||||
}
|
||||
|
||||
/**
|
||||
* Allocate space in memory, where all values are set to 0 (in binary space).
|
||||
|
Reference in New Issue
Block a user