| 112 | } |
| 113 | |
| 114 | U32 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 | |
| 125 | U32 ConnectionStringTable::checkString(NetStringHandle &string, bool *isOnOtherSide) |
| 126 | { |
no test coverage detected