ps4delta/code/shared/utl/mem.h
2019-12-21 16:01:01 +01:00

25 lines
No EOL
381 B
C++

#pragma once
// Copyright (C) Force67 2019
namespace utl
{
enum class allocationType {
reserve,
commit,
reservecommit
};
enum class pageProtection {
noaccess,
read,
write,
execute,
rwx
};
void* allocMem(void* preferredAddr, size_t len, pageProtection, allocationType);
bool protectMem(void* addr, size_t len, pageProtection);
size_t getAvailableMem();
}