MCPcopy Create free account
hub / github.com/defold/defold / HasInstance

Method HasInstance

engine/dlib/src/test/test_mdns.cpp:118–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 bool HasInstance(dmMDNS::EventType type, const char* instance_name) const
119 {
120 for (uint32_t i = 0; i < m_Events.size(); ++i)
121 {
122 const EventSnapshot& e = m_Events[i];
123 if (e.m_Type == type && e.m_InstanceName == instance_name)
124 return true;
125 }
126 return false;
127 }
128
129 uint32_t CountInstance(dmMDNS::EventType type, const char* instance_name) const
130 {

Callers 2

WaitForEventFunction · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected