| 571 | return *static_cast<xml_document_struct*>(reinterpret_cast<xml_memory_page*>(object->header & xml_memory_page_pointer_mask)->allocator); |
| 572 | } |
| 573 | PUGI__NS_END |
| 574 | |
| 575 | // Low-level DOM operations |
| 576 | PUGI__NS_BEGIN |
| 577 | inline xml_attribute_struct* allocate_attribute(xml_allocator& alloc) |
| 578 | { |
| 579 | xml_memory_page* page; |
| 580 | void* memory = alloc.allocate_memory(sizeof(xml_attribute_struct), page); |
| 581 | |
| 582 | return new (memory) xml_attribute_struct(page); |
| 583 | } |
| 584 | |
| 585 | inline xml_node_struct* allocate_node(xml_allocator& alloc, xml_node_type type) |
| 586 | { |
no test coverage detected