MCPcopy Create free account
hub / github.com/MyGUI/mygui / allocate_memory

Method allocate_memory

Tools/EditorFramework/pugixml.cpp:368–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366 void* allocate_memory_oob(size_t size, xml_memory_page*& out_page);
367
368 void* allocate_memory(size_t size, xml_memory_page*& out_page)
369 {
370 if (_busy_size + size > xml_memory_page_size)
371 return allocate_memory_oob(size, out_page);
372
373 void* buf = _root->data + _busy_size;
374
375 _busy_size += size;
376
377 out_page = _root;
378
379 return buf;
380 }
381
382 void deallocate_memory(void* ptr, size_t size, xml_memory_page* page)
383 {

Callers 2

allocate_attributeFunction · 0.45
allocate_nodeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected