r5sdk/r5dev/tier1/utlmemory.h
Kawe Mazidjatari 52883808e1 Reversed CServer structure (almost complete). See desc
* Mostly rebuild CServer structure.
* Partially rebuild CNetworkStringTable structure.
* Partially rebuild CNetworkStringTableContainer structure.
* Removed redundant patterns which are now covered in the data structure.
2022-05-20 20:14:39 +02:00

24 lines
440 B
C++

//============ Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
// A growable memory class.
//===========================================================================//
#pragma once
template <class T>
class CUtlMemory
{
public:
CUtlMemory() {};
CUtlMemory<T>(uintptr_t ptr) : m_pMemory(ptr) {};
private:
void* m_pMemory;
int64_t m_nAllocationCount;
int64_t m_nGrowSize;
};