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

Method packNetStringHandleU

Engine/source/sim/netConnection.cpp:1200–1211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

packUpdateMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 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