mirror of
https://github.com/celisej567/source-engine.git
synced 2026-09-27 16:15:14 +03:00
@@ -109,8 +109,8 @@ protected:
|
||||
|
||||
T** m_pMemory;
|
||||
int m_nBlocks;
|
||||
int m_nIndexMask : 27;
|
||||
int m_nIndexShift : 5;
|
||||
int m_nIndexMask;
|
||||
int m_nIndexShift;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -130,17 +130,16 @@ CUtlBlockMemory<T,I>::~CUtlBlockMemory()
|
||||
Purge();
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Fast swap
|
||||
//-----------------------------------------------------------------------------
|
||||
template< class T, class I >
|
||||
void CUtlBlockMemory<T,I>::Swap( CUtlBlockMemory< T, I > &mem )
|
||||
{
|
||||
this->swap( m_pMemory, mem.m_pMemory );
|
||||
this->swap( m_nBlocks, mem.m_nBlocks );
|
||||
this->swap( m_nIndexMask, mem.m_nIndexMask );
|
||||
this->swap( m_nIndexShift, mem.m_nIndexShift );
|
||||
V_swap( m_pMemory, mem.m_pMemory );
|
||||
V_swap( m_nBlocks, mem.m_nBlocks );
|
||||
V_swap( m_nIndexMask, mem.m_nIndexMask );
|
||||
V_swap( m_nIndexShift, mem.m_nIndexShift );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user