MCPcopy Create free account
hub / github.com/cppla/ServerStatus / Find

Method Find

server/src/netban.h:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 CBan<CDataType> *First() const { return m_pFirstUsed; }
118 CBan<CDataType> *First(const CNetHash *pNetHash) const { return m_paaHashList[pNetHash->m_HashIndex][pNetHash->m_Hash]; }
119 CBan<CDataType> *Find(const CDataType *pData, const CNetHash *pNetHash) const
120 {
121 for(CBan<CDataType> *pBan = m_paaHashList[pNetHash->m_HashIndex][pNetHash->m_Hash]; pBan; pBan = pBan->m_pHashNext)
122 {
123 if(NetComp(&pBan->m_Data, pData) == 0)
124 return pBan;
125 }
126
127 return 0;
128 }
129 CBan<CDataType> *Get(int Index) const;
130
131 private:

Callers 3

BanMethod · 0.80
UnbanMethod · 0.80
IsBannedMethod · 0.80

Calls 1

NetCompFunction · 0.85

Tested by

no test coverage detected