Common: namespace MemoryUtil

This commit is contained in:
Lioncash
2016-08-07 13:03:07 -04:00
parent 1ab99ee22c
commit e01c143379
15 changed files with 50 additions and 40 deletions

View File

@ -7,6 +7,9 @@
#include <cstddef>
#include <string>
namespace Common
{
void* AllocateExecutableMemory(size_t size, bool low = true);
void* AllocateMemoryPages(size_t size);
void FreeMemoryPages(void* ptr, size_t size);
@ -25,3 +28,5 @@ inline int GetPageSize()
{
return 4096;
}
} // namespace Common