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

Method CountInstance

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

Source from the content-addressed store, hash-verified

127 }
128
129 uint32_t CountInstance(dmMDNS::EventType type, const char* instance_name) const
130 {
131 uint32_t count = 0;
132 for (uint32_t i = 0; i < m_Events.size(); ++i)
133 {
134 const EventSnapshot& e = m_Events[i];
135 if (e.m_Type == type && e.m_InstanceName == instance_name)
136 ++count;
137 }
138 return count;
139 }
140
141 const EventSnapshot* FindInstance(dmMDNS::EventType type, const char* instance_name) const
142 {

Callers 2

WaitForEventCountFunction · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected