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

Method CStdValArray

DuiLib/Utils/Utils.cpp:278–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276 //
277
278 CStdValArray::CStdValArray(int iElementSize, int iPreallocSize /*= 0*/) :
279 m_pVoid(NULL),
280 m_nCount(0),
281 m_iElementSize(iElementSize),
282 m_nAllocated(iPreallocSize)
283 {
284 ASSERT(iElementSize>0);
285 ASSERT(iPreallocSize>=0);
286 if( iPreallocSize > 0 ) m_pVoid = static_cast<LPBYTE>(malloc(iPreallocSize * m_iElementSize));
287 }
288
289 CStdValArray::~CStdValArray()
290 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected