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

Function FindRecord

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

Source from the content-addressed store, hash-verified

793 }
794
795 static const RawDnsRecord* FindRecord(const RawDnsPacket& packet, uint16_t type, const char* name)
796 {
797 for (uint32_t i = 0; i < packet.m_Records.size(); ++i)
798 {
799 const RawDnsRecord& record = packet.m_Records[i];
800 if (record.m_Type == type && dmStrCaseCmp(record.m_Name.c_str(), name) == 0)
801 return &record;
802 }
803 return 0;
804 }
805
806 static uint32_t CountRecordType(const RawDnsPacket& packet, uint16_t type)
807 {

Callers 2

CollectResponseTxtIdsFunction · 0.85
TESTFunction · 0.85

Calls 2

dmStrCaseCmpFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected