MCPcopy Create free account
hub / github.com/WheretIB/nullc / allocate_node

Function allocate_node

external/pugixml/pugixml.cpp:475–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473 }
474
475 inline xml_node_struct* allocate_node(xml_allocator& alloc, xml_node_type type)
476 {
477 xml_memory_page* page;
478 void* memory = alloc.allocate_memory(sizeof(xml_node_struct), page);
479
480 return new (memory) xml_node_struct(page, type);
481 }
482
483 inline void destroy_attribute(xml_attribute_struct* a, xml_allocator& alloc)
484 {

Callers 4

pugixml.cppFile · 0.85
prepend_childMethod · 0.85
insert_child_beforeMethod · 0.85
insert_child_afterMethod · 0.85

Calls 1

allocate_memoryMethod · 0.80

Tested by

no test coverage detected