mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
a bit
proper vending machines like fully, performance
This commit is contained in:
20
Project Reboot 3.0/inc.cpp
Normal file
20
Project Reboot 3.0/inc.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user