MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / free

Method free

src/include/buffer.hpp:273–290  ·  view source on GitHub ↗

\brief free, release the memory or the bo

Source from the content-addressed store, hash-verified

271
272 /// \brief free, release the memory or the bo
273 void free() {
274#ifdef __XRT__
275 assert(!is_bo_owner_);
276#endif
277 if (is_owner_){
278 owned_data_.reset();
279 }
280 data_ = nullptr;
281 size_ = 0;
282 is_owner_ = false;
283#ifdef __XRT__
284 if (is_bo_owner_){
285 owned_bo_.reset();
286 }
287 is_bo_owner_ = false;
288 bo_ = nullptr;
289#endif
290 }
291
292 /// \brief reserve
293 /// \param size the size

Callers 4

preprocess_imageMethod · 0.80
preprocess_imageMethod · 0.80
preprocess_imageMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected