| 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 | { |
no test coverage detected