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

Function Alloc

Kernel-Bridge/API/MemoryUtils.h:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40 template <typename T>
41 inline T* Alloc()
42 {
43 return reinterpret_cast<T*>(AllocFromPool(sizeof(T)));
44 }
45
46 // Free memory allocated by Alloc[FromPool[Executable]/AnsiString/WideString/Array]:
47 _IRQL_requires_max_(DISPATCH_LEVEL)

Callers 7

StringMethod · 0.85
operator +Method · 0.85
StringClass · 0.85
ShrinkMethod · 0.85
ResizeMethod · 0.85
ReserveMethod · 0.85
AllocMethod · 0.85

Calls 1

AllocFromPoolFunction · 0.85

Tested by

no test coverage detected