MCPcopy Create free account
hub / github.com/acl-dev/acl / ~dbuf_guard

Method ~dbuf_guard

lib_acl_cpp/src/stdlib/dbuf_pool.cpp:170–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170dbuf_guard::~dbuf_guard()
171{
172 dbuf_objs_link* link = &head_;
173
174 while (link != NULL) {
175 for (size_t i = 0; i < link->size; i++) {
176 link->objs[i]->~dbuf_obj();
177 }
178
179 link = link->next;
180 }
181
182 if (dbuf_internal_) {
183 dbuf_internal_->destroy();
184 }
185}
186
187bool dbuf_guard::dbuf_reset(size_t reserve /* = 0 */)
188{

Callers 1

test5Function · 0.80

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected