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

Function writeLongCString

Engine/source/app/net/serverQuery.cpp:1121–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119//-----------------------------------------------------------------------------
1120
1121static void writeLongCString( BitStream* stream, const char* string )
1122{
1123 U16 strLen = ( string != NULL ) ? dStrlen( string ) : 0;
1124 stream->write( strLen );
1125 for ( U32 i = 0; i < strLen; i++ )
1126 stream->write( U8( string[i] ) );
1127}
1128
1129//-----------------------------------------------------------------------------
1130

Callers 1

handleGameInfoRequestFunction · 0.85

Calls 2

dStrlenFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected