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

Function allocate_attribute

Tools/EditorFramework/pugixml.cpp:587–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585 return *reinterpret_cast<xml_memory_page*>(node->header & xml_memory_page_pointer_mask)->allocator;
586}
587PUGI__NS_END
588
589// Low-level DOM operations
590PUGI__NS_BEGIN
591inline xml_attribute_struct* allocate_attribute(xml_allocator& alloc)
592{
593 xml_memory_page* page;
594 void* memory = alloc.allocate_memory(sizeof(xml_attribute_struct), page);
595
596 return new (memory) xml_attribute_struct(page);
597}
598
599inline xml_node_struct* allocate_node(xml_allocator& alloc, xml_node_type type)
600{

Callers 4

pugixml.cppFile · 0.70
prepend_attributeMethod · 0.70

Calls 1

allocate_memoryMethod · 0.45

Tested by

no test coverage detected