| 605 | } |
| 606 | |
| 607 | inline 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 | |
| 622 | inline void destroy_node(xml_node_struct* n, xml_allocator& alloc) |
| 623 | { |
no test coverage detected