----------------------------------------------------------------------------- Serialization -----------------------------------------------------------------------------
| 1234 | // Serialization |
| 1235 | //----------------------------------------------------------------------------- |
| 1236 | void CUtlBuffer::Put( const void *pMem, int size ) |
| 1237 | { |
| 1238 | if ( size > 0 && CheckPut( size ) ) |
| 1239 | { |
| 1240 | if ( pMem != &m_Memory[m_Put] ) |
| 1241 | memcpy( &m_Memory[m_Put], pMem, size ); |
| 1242 | m_Put += size; |
| 1243 | |
| 1244 | AddNullTermination(); |
| 1245 | } |
| 1246 | } |
| 1247 | |
| 1248 | |
| 1249 | //----------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected