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