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

Function allocate_node

Tools/EditorFramework/pugixml.cpp:599–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599inline xml_node_struct* allocate_node(xml_allocator& alloc, xml_node_type type)
600{
601 xml_memory_page* page;
602 void* memory = alloc.allocate_memory(sizeof(xml_node_struct), page);
603
604 return new (memory) xml_node_struct(page, type);
605}
606
607inline void destroy_attribute(xml_attribute_struct* a, xml_allocator& alloc)
608{

Callers 4

pugixml.cppFile · 0.70
prepend_childMethod · 0.70
insert_child_beforeMethod · 0.70
insert_child_afterMethod · 0.70

Calls 1

allocate_memoryMethod · 0.45

Tested by

no test coverage detected