MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / Allocate

Method Allocate

KernelLibrary/kvector.h:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98private:
99 T* Allocate(ULONG size) {
100 auto buffer = static_cast<T*>(ExAllocatePoolWithTag(PoolType,
101 sizeof(T) * size, Tag));
102 if (!buffer)
103 return nullptr;
104 RtlZeroMemory(buffer, sizeof(T) * size);
105 return buffer;
106 }
107private:
108 T* m_array;
109 ULONG m_Size, m_Capacity;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected