Gems/EMotionFX/Code/MCore/Source/MCoreSystem.cpp
void MCoreSystem::MemTempBufferAssureSize(size_t numBytes)
    {
        // if the buffer is already big enough, we can just return
        if (m_memTempBufferSize >= numBytes)
        {
            return;
        }

        // resize the buffer (make it bigger)
        m_memTempBuffer = Realloc(m_memTempBuffer, numBytes, MCORE_MEMCATEGORY_SYSTEM);
        MCORE_ASSERT(m_memTempBuffer);

        m_memTempBufferSize = numBytes;
    }
// make sure the temp buffer is of a given minimum size
make sure the temp buffer is of a given minimum size
make sure the temp buffer is of a given minimum size
void MCoreSystem::MemTempBufferAssureSize(size_t numBytes)
    {
        if (m_memTempBufferSize >= numBytes)
        {
            return;
        }
        m_memTempBuffer = Realloc(m_memTempBuffer, numBytes, MCORE_MEMCATEGORY_SYSTEM);
        MCORE_ASSERT(m_memTempBuffer);
        m_memTempBufferSize = numBytes;
    }
void MCoreSystem :: MemTempBufferAssureSize ( size_t numBytes ) { if ( m_memTempBufferSize >= numBytes ) { return ; } m_memTempBuffer = Realloc ( m_memTempBuffer , numBytes , MCORE_MEMCATEGORY_SYSTEM ) ; MCORE_ASSERT ( m_memTempBuffer ) ; m_memTempBufferSize = numBytes ; }
make sure the temp buffer is of a given minimum size
make sure the temp buffer is of a given minimum size
// if the buffer is already big enough, we can just return // resize the buffer (make it bigger)