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

Method packNetStringHandleU

Engine/source/sim/netConnection.cpp:1205–1216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1203}
1204
1205void NetConnection::packNetStringHandleU(BitStream *stream, NetStringHandle &h)
1206{
1207 if(stream->writeFlag(h.isValidString() ))
1208 {
1209 bool isReceived;
1210 U32 netIndex = checkString(h, &isReceived);
1211 if(stream->writeFlag(isReceived))
1212 stream->writeInt(netIndex, ConnectionStringTable::EntryBitSize);
1213 else
1214 stream->writeString(h.getString());
1215 }
1216}
1217
1218NetStringHandle NetConnection::unpackNetStringHandleU(BitStream *stream)
1219{

Callers 4

packUpdateMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packMethod · 0.80

Calls 5

isValidStringMethod · 0.80
writeIntMethod · 0.80
writeFlagMethod · 0.45
writeStringMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected