----------------------------------------------------------------------------- Take ownership of mem from a CUtlMemory -----------------------------------------------------------------------------
| 1614 | // Take ownership of mem from a CUtlMemory |
| 1615 | //----------------------------------------------------------------------------- |
| 1616 | void CUtlBuffer::TakeOwnershipOfMemory( CUtlMemory<uint8> &mem ) |
| 1617 | { |
| 1618 | m_Get = 0; |
| 1619 | m_Put = mem.Count(); |
| 1620 | m_nMaxPut = mem.Count(); |
| 1621 | m_Error = 0; |
| 1622 | m_Memory.Swap( mem ); |
| 1623 | mem.Purge(); |
| 1624 | } |
| 1625 | |
| 1626 | |
| 1627 | //----------------------------------------------------------------------------- |