MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / allocate_attribute

Function allocate_attribute

Source/ThirdParty/pugixml/pugixml.cpp:573–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571 return *static_cast<xml_document_struct*>(reinterpret_cast<xml_memory_page*>(object->header & xml_memory_page_pointer_mask)->allocator);
572 }
573PUGI__NS_END
574
575// Low-level DOM operations
576PUGI__NS_BEGIN
577 inline xml_attribute_struct* allocate_attribute(xml_allocator& alloc)
578 {
579 xml_memory_page* page;
580 void* memory = alloc.allocate_memory(sizeof(xml_attribute_struct), page);
581
582 return new (memory) xml_attribute_struct(page);
583 }
584
585 inline xml_node_struct* allocate_node(xml_allocator& alloc, xml_node_type type)
586 {

Callers 5

pugixml.cppFile · 0.85
append_attributeMethod · 0.85
prepend_attributeMethod · 0.85

Calls 1

allocate_memoryMethod · 0.80

Tested by

no test coverage detected