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

Function destroy_attribute

external/pugixml/pugixml.cpp:483–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481 }
482
483 inline void destroy_attribute(xml_attribute_struct* a, xml_allocator& alloc)
484 {
485 uintptr_t header = a->header;
486
487 if (header & xml_memory_page_name_allocated_mask) alloc.deallocate_string(a->name);
488 if (header & xml_memory_page_value_allocated_mask) alloc.deallocate_string(a->value);
489
490 alloc.deallocate_memory(a, sizeof(xml_attribute_struct), reinterpret_cast<xml_memory_page*>(header & xml_memory_page_pointer_mask));
491 }
492
493 inline void destroy_node(xml_node_struct* n, xml_allocator& alloc)
494 {

Callers 2

destroy_nodeFunction · 0.85
remove_attributeMethod · 0.85

Calls 2

deallocate_stringMethod · 0.80
deallocate_memoryMethod · 0.80

Tested by

no test coverage detected