MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / allocate_node

Function allocate_node

src/include/pugixml.cpp:535–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533 }
534
535 inline xml_node_struct* allocate_node(xml_allocator& alloc, xml_node_type type)
536 {
537 xml_memory_page* page;
538 void* memory = alloc.allocate_memory(sizeof(xml_node_struct), page);
539
540 return new (memory) xml_node_struct(page, type);
541 }
542
543 inline void destroy_attribute(xml_attribute_struct* a, xml_allocator& alloc)
544 {

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