MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / writeCString

Function writeCString

Engine/source/app/net/serverQuery.cpp:1096–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094//-----------------------------------------------------------------------------
1095
1096static void writeCString( BitStream* stream, const char* string )
1097{
1098 U8 strLen = ( string != NULL ) ? dStrlen( string ) : 0;
1099 stream->write( strLen );
1100 for ( U32 i = 0; i < strLen; i++ )
1101 stream->write( U8( string[i] ) );
1102}
1103
1104//-----------------------------------------------------------------------------
1105

Callers 4

processMasterServerQueryFunction · 0.85
handleGamePingRequestFunction · 0.85
handleGameInfoRequestFunction · 0.85

Calls 2

dStrlenFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected