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

Function AddEntryWithHashedKey

engine/dlib/src/dlib/configfile.cpp:388–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386 }
387
388 static void AddEntryWithHashedKey(Context* context, uint64_t key_hash, const char* value)
389 {
390 uint32_t i = AddString(context, value);
391 if (context->m_Entries.Remaining() == 0)
392 {
393 context->m_Entries.OffsetCapacity(32);
394 }
395 context->m_Entries.Push(ConfigFileEntry(key_hash, i));
396 }
397
398 static void ParseLiteral(Context* context, char* buf, int buf_len)
399 {

Callers 1

LoadFromBufferInternalFunction · 0.85

Calls 5

AddStringFunction · 0.85
ConfigFileEntryClass · 0.85
RemainingMethod · 0.45
OffsetCapacityMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected