MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / writeCString

Function writeCString

engine/source/network/serverQuery.cc:949–955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947//-----------------------------------------------------------------------------
948
949static void writeCString( BitStream* stream, const char* string )
950{
951 U8 strLen = ( string != NULL ) ? dStrlen( string ) : 0;
952 stream->write( strLen );
953 for ( U32 i = 0; i < strLen; i++ )
954 stream->write( U8( string[i] ) );
955}
956
957//-----------------------------------------------------------------------------
958

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