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

Method revert

external/pugixml/pugixml.cpp:5153–5170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5151 }
5152
5153 void revert(const xpath_allocator& state)
5154 {
5155 // free all new pages
5156 xpath_memory_block* cur = _root;
5157
5158 while (cur != state._root)
5159 {
5160 xpath_memory_block* next = cur->next;
5161
5162 global_deallocate(cur);
5163
5164 cur = next;
5165 }
5166
5167 // restore state
5168 _root = state._root;
5169 _root_size = state._root_size;
5170 }
5171
5172 void release()
5173 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected