MCPcopy Create free account
hub / github.com/Inori/GPCS4 / VMAllocate

Function VMAllocate

GPCS4/Platform/PlatMemory.cpp:117–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void* VMAllocate(void* pAddress, size_t nSize,
118 VM_ALLOCATION_TYPE nType, VM_PROTECT_FLAG nProtect)
119{
120 DWORD dwType = GetTypeFlag(nType);
121 DWORD dwProtect = GetProtectFlag(nProtect);
122
123 return VirtualAlloc(pAddress, nSize, dwType, dwProtect);
124}
125
126void* VMAllocateAlign(void* pAddress, size_t nSize, size_t nAlign,
127 VM_ALLOCATION_TYPE nType, VM_PROTECT_FLAG nProtect)

Callers 3

JitFunctionPoolMethod · 0.85
allocateInternalMethod · 0.85
patchTLSInstructionMethod · 0.85

Calls 2

GetTypeFlagFunction · 0.85
GetProtectFlagFunction · 0.85

Tested by

no test coverage detected