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

Method AllocString

engine/ddf/src/ddf/ddf_loadcontext.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 char* LoadContext::AllocString(int length)
75 {
76 uintptr_t b = m_Current;
77
78 m_Current += length;
79
80 assert(m_DryRun || m_Current <= m_End);
81
82 return (char*)b;
83 }
84
85 char* LoadContext::AllocBytes(int length)
86 {

Callers 2

SetStringMethod · 0.80
AddStringMethod · 0.80

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected