//---------------------------------------------------------------------------------------- // Initializes an instance of the CFloat32Data2D class with initialization of the data block. bool CFloat32Data3DMemory::_initialize(int _iWidth, int _iHeight, int _iDepth, const float32* _pfData) { // basic checks ASTRA_ASSERT(_iWidth > 0); ASTRA_ASSERT(_iHeight > 0); ASTRA_ASSERT(_iDepth > 0); ASTRA_ASSERT(_pfData != NULL); if (m_bInitialized) { _unInit(); } // calculate size m_iWidth = _iWidth; m_iHeight = _iHeight; m_iDepth = _iDepth; m_iSize = (size_t)m_iWidth * m_iHeight * m_iDepth; // allocate memory for the data, but do not fill it m_pfData = NULL; m_pCustomMemory = 0; _allocateData(); // fill the data block with a copy of the input data size_t i; for (i = 0; i < m_iSize; ++i) { m_pfData[i] = _pfData[i]; } // initialization complete return true; }
//---------------------------------------------------------------------------------------- // Initializes an instance of the CFloat32Data2D class, allocating (but not initializing) the data block. bool CFloat32Data3DMemory::_initialize(int _iWidth, int _iHeight, int _iDepth) { // basic checks ASTRA_ASSERT(_iWidth > 0); ASTRA_ASSERT(_iHeight > 0); ASTRA_ASSERT(_iDepth > 0); if (m_bInitialized) { _unInit(); } // calculate size m_iWidth = _iWidth; m_iHeight = _iHeight; m_iDepth = _iDepth; m_iSize = (size_t)m_iWidth * m_iHeight * m_iDepth; // allocate memory for the data, but do not fill it m_pfData = NULL; m_pCustomMemory = 0; _allocateData(); // initialization complete return true; }
//---------------------------------------------------------------------------------------- // Destructor. Free allocated memory CFloat32Data3DMemory::~CFloat32Data3DMemory() { if (m_bInitialized) { _unInit(); } }
HMTaskAcceptConnect::~HMTaskAcceptConnect() { _unInit(); }
laudio_pack_decoder::~laudio_pack_decoder() { _unInit(); }
CRServerRoot::~CRServerRoot() { _unInit(); }
dk_pd_proxy_4_render::~dk_pd_proxy_4_render() { _unInit(); }