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

Function readLongCString

Engine/source/app/net/serverQuery.cpp:1131–1142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1129//-----------------------------------------------------------------------------
1130
1131static void readLongCString( BitStream* stream, char* buffer )
1132{
1133 U32 i;
1134 U16 strLen;
1135 stream->read( &strLen );
1136 for ( i = 0; i < strLen; i++ )
1137 {
1138 U8* ptr = (U8*) buffer;
1139 stream->read( &ptr[i] );
1140 }
1141 buffer[i] = 0;
1142}
1143
1144//-----------------------------------------------------------------------------
1145// Event processing

Callers 1

handleGameInfoResponseFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected