| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected