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

Method PutDelimitedCharInternal

src/tier1/utlbuffer.cpp:1318–1330  ·  view source on GitHub ↗

----------------------------------------------------------------------------- This version of PutString converts \ to \\ and " to \", etc. It also places " at the beginning and end of the string -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1316// It also places " at the beginning and end of the string
1317//-----------------------------------------------------------------------------
1318inline void CUtlBuffer::PutDelimitedCharInternal( CUtlCharConversion *pConv, char c )
1319{
1320 int l = pConv->GetConversionLength( c );
1321 if ( l == 0 )
1322 {
1323 PutChar( c );
1324 }
1325 else
1326 {
1327 PutChar( pConv->GetEscapeChar() );
1328 Put( pConv->GetConversionString( c ), l );
1329 }
1330}
1331
1332void CUtlBuffer::PutDelimitedChar( CUtlCharConversion *pConv, char c )
1333{

Callers

nothing calls this directly

Calls 3

GetConversionLengthMethod · 0.80
GetEscapeCharMethod · 0.80
GetConversionStringMethod · 0.80

Tested by

no test coverage detected