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

Method AllocBytes

engine/ddf/src/ddf/ddf_loadcontext.cpp:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 char* LoadContext::AllocBytes(int length)
86 {
87 m_Current = (uintptr_t) DM_ALIGN(m_Current, 16);
88 uintptr_t b = m_Current;
89 m_Current += length;
90 assert(m_DryRun || m_Current <= m_End);
91 return (char*)b;
92 }
93
94 uint32_t LoadContext::GetOffset(void* memory)
95 {

Callers 1

SetBytesMethod · 0.80

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected