Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
SetString
Method · 0.80
AddString
Method · 0.80
Calls
1
assert
Function · 0.50
Tested by
no test coverage detected