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

Function FindEntry

engine/ddf/src/test/test_ddf_struct.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include "ddf/ddf_struct.h"
20
21static dmStructDDF::Struct::FieldsEntry* FindEntry(dmStructDDF::Struct* message, const char* key)
22{
23 for (uint32_t i = 0; i < message->m_Fields.m_Count; ++i)
24 {
25 if (strcmp(message->m_Fields[i].m_Key, key) == 0)
26 return &message->m_Fields[i];
27 }
28
29 return 0;
30}
31
32void TestStructSimple(const char* msg, uint32_t msg_size)
33{

Callers 7

TestStructSimpleFunction · 0.70
TestStructNestedFunction · 0.70
TestStructListFunction · 0.70
TestStructJSONFunction · 0.70
PutMethod · 0.50
GetMethod · 0.50
VerifyMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected