----------------------------------------------------------------------------- Release our memory to a CUtlMemory The punCurrentPut parameter is because that information (how much of the memory allocated has been written to) is lost when transferring into a CUtlMemory -----------------------------------------------------------------------------
| 1630 | // allocated has been written to) is lost when transferring into a CUtlMemory |
| 1631 | //----------------------------------------------------------------------------- |
| 1632 | void CUtlBuffer::ReleaseToMemory( CUtlMemory<uint8> &mem, int *punCurrentPut ) |
| 1633 | { |
| 1634 | *punCurrentPut = m_Put; |
| 1635 | m_Memory.Swap( mem ); |
| 1636 | Purge(); |
| 1637 | } |
| 1638 | |
| 1639 | |
| 1640 |