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

Method StrAllocMem

Kernel-Bridge/API/StringsAPI.h:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 static inline TChar* StrAllocMem(size_t Bytes) {
52#ifdef _NTDDK_
53#ifdef POOL_NX_OPTIN
54 return static_cast<TChar*>(ExAllocatePoolWithTag(ExDefaultNonPagedPoolType, Bytes, StrPoolTag));
55#else
56 return static_cast<TChar*>(ExAllocatePoolWithTag(NonPagedPool, Bytes, StrPoolTag));
57#endif
58#else
59 return reinterpret_cast<TChar*>(new BYTE[Bytes]);
60#endif
61 }
62
63 static inline VOID StrFreeMem(TChar* Memory) {
64#ifdef _NTDDK_

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected