| 206 | } |
| 207 | |
| 208 | static int GetItemIndexHashed(int Key, const CItemList *pHashlist) |
| 209 | { |
| 210 | size_t HashId = CalcHashId(Key); |
| 211 | for(int i = 0; i < pHashlist[HashId].m_Num; i++) |
| 212 | { |
| 213 | if(pHashlist[HashId].m_aKeys[i] == Key) |
| 214 | return pHashlist[HashId].m_aIndex[i]; |
| 215 | } |
| 216 | |
| 217 | return -1; |
| 218 | } |
| 219 | |
| 220 | int CSnapshotDelta::DiffItem(const int *pPast, const int *pCurrent, int *pOut, int Size) |
| 221 | { |
no test coverage detected