MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / operator new

Function operator new

Kernel-Bridge/API/CppSupport.cpp:115–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113constexpr unsigned long CrtPoolTag = 'TRC_';
114
115void* __cdecl operator new(size_t Size)
116{
117 void* Pointer = ExAllocatePoolWithTag(NonPagedPool, Size, CrtPoolTag);
118 if (Pointer) RtlZeroMemory(Pointer, Size);
119 return Pointer;
120}
121
122void* __cdecl operator new(size_t Size, POOL_TYPE PoolType)
123{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected