MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / HashNetAddress

Function HashNetAddress

Engine/source/sim/netConnection.cpp:158–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156bool NetConnection::mFilesWereDownloaded = false;
157
158static inline U32 HashNetAddress(const NetAddress *addr)
159{
160 return addr->getHash() % NetConnection::HashTableSize;
161}
162
163NetConnection *NetConnection::lookup(const NetAddress *addr)
164{

Callers 3

lookupMethod · 0.85
netAddressTableInsertMethod · 0.85
netAddressTableRemoveMethod · 0.85

Calls 1

getHashMethod · 0.45

Tested by

no test coverage detected