| 195 | |
| 196 | template<class T, int HashCount> |
| 197 | typename CNetBan::CBan<T> *CNetBan::CBanPool<T, HashCount>::Get(int Index) const |
| 198 | { |
| 199 | if(Index < 0 || Index >= Num()) |
| 200 | return nullptr; |
| 201 | |
| 202 | for(CNetBan::CBan<T> *pBan = m_pFirstUsed; pBan; pBan = pBan->m_pNext, --Index) |
| 203 | { |
| 204 | if(Index == 0) |
| 205 | return pBan; |
| 206 | } |
| 207 | |
| 208 | return nullptr; |
| 209 | } |
| 210 | |
| 211 | template<class T> |
| 212 | int CNetBan::Ban(T *pBanPool, const typename T::CDataType *pData, int Seconds, const char *pReason, bool VerbatimReason) |
no outgoing calls
no test coverage detected