MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / Put

Method Put

src/tier1/utlbuffer.cpp:1236–1246  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Serialization -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1234// Serialization
1235//-----------------------------------------------------------------------------
1236void 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//-----------------------------------------------------------------------------

Callers 8

OpenSSHWriteUInt32Function · 0.80
OnDataMethod · 0.80
FinishCryptoHandshakeMethod · 0.80
ConvertCRLFMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected