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

Function writeCString

Engine/source/app/net/serverQuery.cpp:1093–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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