mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
20 lines
343 B
C++
20 lines
343 B
C++
#include "inc.h"
|
|
|
|
#include "Array.h"
|
|
|
|
/*
|
|
|
|
void* InstancedAllocator::Allocate(AllocatorType type, size_t Size)
|
|
{
|
|
switch (type)
|
|
{
|
|
case AllocatorType::VIRTUALALLOC:
|
|
return VirtualAlloc(0, Size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
|
|
case AllocatorType::FMEMORY:
|
|
return FMemory::Realloc(0, Size, 0);
|
|
}
|
|
|
|
return nullptr;
|
|
}
|
|
|
|
*/ |