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

Function destroy_attribute

UnitTests/TestApp/pugixml.cpp:607–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607inline void destroy_attribute(xml_attribute_struct* a, xml_allocator& alloc)
608{
609 uintptr_t header = a->header;
610
611 if (header & impl::xml_memory_page_name_allocated_mask)
612 alloc.deallocate_string(a->name);
613 if (header & impl::xml_memory_page_value_allocated_mask)
614 alloc.deallocate_string(a->value);
615
616 alloc.deallocate_memory(
617 a,
618 sizeof(xml_attribute_struct),
619 reinterpret_cast<xml_memory_page*>(header & xml_memory_page_pointer_mask));
620}
621
622inline void destroy_node(xml_node_struct* n, xml_allocator& alloc)
623{

Callers 2

destroy_nodeFunction · 0.70
remove_attributeMethod · 0.70

Calls 2

deallocate_stringMethod · 0.45
deallocate_memoryMethod · 0.45

Tested by

no test coverage detected