MCPcopy Create free account
hub / github.com/cinience/RedisStudio / CStdPtrArray

Method CStdPtrArray

DuiLib/Utils/Utils.cpp:152–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 //
151
152 CStdPtrArray::CStdPtrArray(int iPreallocSize) : m_ppVoid(NULL), m_nCount(0), m_nAllocated(iPreallocSize)
153 {
154 ASSERT(iPreallocSize>=0);
155 if( iPreallocSize > 0 ) m_ppVoid = static_cast<LPVOID*>(malloc(iPreallocSize * sizeof(LPVOID)));
156 }
157
158 CStdPtrArray::CStdPtrArray(const CStdPtrArray& src) : m_ppVoid(NULL), m_nCount(0), m_nAllocated(0)
159 {

Callers

nothing calls this directly

Calls 2

GetAtMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected