| 97 | } |
| 98 | private: |
| 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 | } |
| 107 | private: |
| 108 | T* m_array; |
| 109 | ULONG m_Size, m_Capacity; |
nothing calls this directly
no outgoing calls
no test coverage detected