----------------------------------------------------------------------------- memory access -----------------------------------------------------------------------------
| 1642 | // memory access |
| 1643 | //----------------------------------------------------------------------------- |
| 1644 | void *CUtlBuffer::DetachAndClear() |
| 1645 | { |
| 1646 | void *pubData = m_Memory.Detach(); |
| 1647 | |
| 1648 | m_Get = 0; |
| 1649 | m_Put = 0; |
| 1650 | m_Error = 0; |
| 1651 | m_nMaxPut = -1; |
| 1652 | AddNullTermination(); |
| 1653 | |
| 1654 | return pubData; |
| 1655 | } |
| 1656 | |
| 1657 | |
| 1658 | void CUtlBuffer::PutChar( char c ) |