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

Method getNetSendId

Engine/source/sim/connectionStringTable.cpp:114–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114U32 ConnectionStringTable::getNetSendId(NetStringHandle &string)
115{
116 // see if the entry is in the hash table right now
117 U32 hashIndex = string.getIndex() % EntryCount;
118 for(Entry *walk = mHashTable[hashIndex]; walk; walk = walk->nextHash)
119 if(walk->string == string)
120 return walk->index;
121 AssertFatal(0, "Net send id is not in the table. Error!");
122 return 0;
123}
124
125U32 ConnectionStringTable::checkString(NetStringHandle &string, bool *isOnOtherSide)
126{

Callers 1

RemoteCommandEventMethod · 0.45

Calls 1

getIndexMethod · 0.45

Tested by

no test coverage detected